This is our coverage stataus at the v1.43.0 testing release. In this first coverage effort we focused on the most important areas which would yield the best certification of the compiler in general. We didn't test many of the more extreme (infrequently exercided cases.) We did try to cover all regions that affect actual code generation.
Here are the coverage categories:
FIGURE 1: v1.43.0 top-level
coverage report view.
This page shows that there are three pages below this one (src
, src/classes
, and src/Utils
each with their own page of details. Click on one of the three names to view the page for that group.
Here is the src/classes
status:
FIGURE 2: v1.43.0 src/classes
coverage report view.
Again, this is our results at v1.43.0 our initial test release.
Running our coverage is a three step process.
Set up for running coverage with the command:
# npm run cov-setup
This step renames scripts and copies test files into place so that coverage can be run.
Run coverage with the command:
# npm run coverage
This step actually runs the coverage tests and ends by generating a full coverage report.
To review the report open ~/jest-coverage/lcov-report/index.html
with your browser.
Cleanup the coverage setup with the command:
# npm run cov-teardown
This restores the container to normal non-coverage mode. In this state you do normal builds and run the regression test suite, etc.
WARNING! When you are committing changes to the repostory please make sure that the repository is NOT in coverage mode. Many files are setup badly in this mode we don't want to check them in in this state! To see which mode the container is in just run:
# npm run cov-chk # determine which mode the container is in
> [email protected] cov-chk
> ./scripts/modeCov
modeCov: TEST/ALLCODE-tests is set up! (Coverage Mode)
If you are seeing Coverage Mode
then please run cov-teardown
before committing any changes.
# npm run cov-chk
> [email protected] cov-chk
> ./scripts/modeCov
modeCov: TEST/ALLCODE-tests is torn down! (Regression Mode)
If, instead you are seeing Regression Mode
then coverage mode is NOT setup and you are ready to commit changes.
If you like my work and/or this has helped you in some way then feel free to help me out for a couple of ☕'s or 🍕 slices or support my work by contributing at Patreon!
Licensed under the MIT License.
Follow these links for more information: