| name | generate-testcase |
| description | Analyze new commits and generate related test cases. |
| disable-model-invocation | true |
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Preparation
- Find all commits after this branch is forked.
- Compare two commits and extract all new files.
- Locate the test directory. The test file should be saved in this directory.
- Locate the spec directory, often
./specs/.
Generation
- Think about some user scenarios (From basic usage with default setting, to different formats and parameters). These scenarios MUST related to the new feature.
- Ask users to choose. Wait for users response.
- For each user scenario, create a test function to confirm.
- Build and run test cases. Fix problems until all test passed.
Test
- Check the installation test coverage packages, including
fastcov and lcov.
- Build and run test cases. Note to enable
ENABLE_GCOV and BUILD_TEST.
- Fix problems until all test passed.
- Report and analyze the coverage result. Highlight files that the function coverage rate is not 100%.