Skip to content

JitPlugin coverage tool to improve coverage for torch.jit functions

Wei Sheng Lai requested to merge wlai/salt:jitplugin_coverage into main

This merge request acts as a draft to improve coverage, specifically for torch.jit.script functions

This is shown to be done by vendoring a coverage plugin package JitPlugin
The improvement of coverage can be seen here where utils/union_find.py are 100% covered.

There are couple workarounds to make this work:

  • Ignoring the source code in pre-commit
  • Ignoring coverage summary for conda files

Edited: Instead of making things complicated we decided to just wrap a jit function around the non-jit function and test on the non-jit functions.

Related to #20

Edited by Wei Sheng Lai

Merge request reports