Skip to content

Instrumentation improvements...

Choose a tag to compare

@the-t-in-rtf the-t-in-rtf released this 26 Feb 10:36
· 120 commits to main since this release

This release adds a new instrumenter that can be used as an alternative to istanbul or nyc, and which supports better declarative control over what is included/excluded and what is instrumented/copied. See the README and updated docs for details.

There are breaking changes in this release, as the testem component grades are now broken down so that you can independently choose whether to:

  1. Instrument the code to be tested yourself (or use pre-instrumented code).
  2. Collect code coverage data when running tests against instrumented code.
  3. Prepare a coverage report at the end of a run.

Although the main gpii.testem Testem component grade still handles all three as before, There were previously grades exposed that took care of some but not all of the above, and the behaviour of those grades has changed. Users who previously used one of the intermediate grades will need to update their code to use the most appropriate Testem component grade. See the README and updated docs for details.