Buildpiper_Lab_05: Test our Application - OT-TRAINING/Mobile-CI-CD GitHub Wiki
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.
Step 2:- Add the flutter step in your job template.
Linting
Linting is the process of analyzing and checking source code for potential errors, bugs, or stylistic issues.
- Select the
analyzefrom the drop down and thenSaveit.
Step 3:- Add another flutter step in your job template.
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 -vfrom the drop down and thenSaveit.
Note:- Make sure that we are following the below sequence for rearranging the step. After Gitleaks we should have:
-
pub get
-
analyze
-
test -v
For arranging it, click on View Step.
See the instruction for differentiating every flutter step.
Step 4:- Now trigger the build.
Hurrayy!!! Successfully Test Job Triggered.....