Skip to content

Buildpiper_Lab_05: Test our Application

taranopstree edited this page Jul 21, 2023 · 6 revisions

Wouldn't be that great to lint and test our code first before building our Apk.

Prerequisites

  • Successful completion of Lab 4

Let's Begin

In this section of the lab, we'll add the test step for our application.

Step 1:- Click on your teamname application then go to Job Templates and click on Edit button.

Screenshot 2023-07-19 193120 

Step 2:- Add the flutter step in your job template.

image 

Linting

Linting is the process of analyzing and checking source code for potential errors, bugs, or stylistic issues.

  • Select the analyze from the drop down and then Save it.

image 

Step 3:- Add another flutter step in your job template.

image 

Unit Test

Unit testing is a software testing technique that involves testing individual units or components of a software application in isolation.

  • Select the test -v from the drop down and then Save it.

image 

Note:- Make sure that we are following the below sequence for rearranging the step. After Gitleaks we should have:

  • pub get

  • analyze

  • test -v

image 

For arranging it, click on View Step.

image 

See the instruction for differentiating every flutter step.

image 

Step 4:- Now trigger the build.

image 

Hurrayy!!! Successfully Test Job Triggered.....