Disabling a Test Case in the profile does not prevent it from being run if called explicitly #1284
Labels
A-TestCase
Area: Test case specification or implementation of test case
S-PRforIssue
Status: There is a PR that is meant to resolve the issue
Milestone
The profile can be used to prevent Test Cases from being run (i.e. by removing them from the profile). This is true when Engine runs the whole test suite, or even specific Test modules, but not when running specific Test Cases (i.e., using Zonemaster::Engine/test_method() or Zonemaster::Engine::Test/run_one()). That is because the checks are done directly in the
all()
method of each Test module (with the help of Zonemaster::Engine::Util/should_run_test()). That method is not used when running specific Test Cases.For example, using Zonemaster-CLI, after removing Address01 from the profile (note that Engine is started twice because of two
--test
arguments):It could be intentional, but that seems odd to me. So, bug or feature? I would advocate for the former.
The text was updated successfully, but these errors were encountered: