-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Context:
-
Running
mvn testas part of our CI was supposed to run all tests and fail CI if any test would fail. However, we noticed that it is currently not configured properly, and hence there are a handful of broken tests sitting onmasterbranch. -
The purpose of this issue is to configure the maven plugins in the project properly so that any broken test would fail the CI. As the candidate, we suggest Surefire plugin of maven be adopted to our project.
-
Once the plugging is set properly, the broken tests should be identified, their root cause investigated, and fixed one by one.
How to proceed?
- Create a branch
<yourname>/<issue-number>-<issue-name> - Make sure that you setup the Surefire plugin has setup correctly so that
mvn testwill _run all tests insrc/test/java/**packages. Even develop a simple test and intentionally let it fail to verify whether Surefire can catch it properly. - Identify all broken tests, start by the easiest one to fix, and fix it, and repeat this process iteratively till all tests are passed.
Definition of Done:
- Surefire plugin has been configured properly.
-
mvn testwill run all tests in specified package and will detect and catch any broken test. - All broken tests have been identified and fixed one by one.