Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test module registration #1335

Open
mattias-p opened this issue Apr 4, 2024 · 0 comments
Open

Test module registration #1335

mattias-p opened this issue Apr 4, 2024 · 0 comments

Comments

@mattias-p
Copy link
Member

Depends on:

When Zonemaster::Engine::Profile is loaded, the test_cases and test_levels
properties of the default profile should start out empty.

The Zonemaster::Engine::Profile module should provide a class method for test
module registration. When a test module is registered the Profile module should:

  • make sure that no test module with the same test module name is already
    registered,
  • collect the set of test case names from the test module and add them to the
    test_cases property of the default profile,
  • collect the set of message tags and default severities from the test module
    and add them to the test_levels property of the default profile.

The Zonemaster::Engine::Test module should register all built-in test modules
with Zonemaster::Engine::Profile module. The Basic test module should be
registered first and the remaining ones should be registered in case-insensitive
lexicographic order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant