Finds the modules which are not directly imported by a test module.
config =
[ FindUntestedModules.rule
]
This is a very crude way of attempting to find untested modules. Code coverage tools
do a better job at this than this rule could, but there may some blind spots that this rule can cover.
For instance, you might have some complex function being run as part of your tests without explicitly testing the function itself,
meaning that a code coverage tool would indicate the function as being tested, whereas in practice it may not be tested properly.
Both systems have blind spots, and maybe this kind of insight can help you detect which modules deserve more extensive testing.
Finds the modules which are not directly imported by a test module.
config = [ FindUntestedModules.rule ]
This is a very crude way of attempting to find untested modules. Code coverage tools do a better job at this than this rule could, but there may some blind spots that this rule can cover.
For instance, you might have some complex function being run as part of your tests without explicitly testing the function itself, meaning that a code coverage tool would indicate the function as being tested, whereas in practice it may not be tested properly.
Both systems have blind spots, and maybe this kind of insight can help you detect which modules deserve more extensive testing.
Example output
[ "Some.Untested.Module", "Another.Module.Which.Could.Use.Testing" ]
Try it out
You can try this rule out by running the following command:
elm-review --template jfmengels/elm-review-random-insights/preview --report=json --extract | jq -r '.extracts.FindUntestedModules'