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

Add coverage results using additional rules directory #85

Open
fzipi opened this issue Oct 1, 2022 · 0 comments
Open

Add coverage results using additional rules directory #85

fzipi opened this issue Oct 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fzipi
Copy link
Member

fzipi commented Oct 1, 2022

As a security rules tester, I would like to have tests results coverage based on the tests and on the rules I am testing.

Requirements

  • add an optional --coverage parameter, with a required additional --rules directory parameter that will contain rules.
  • rules will be read from *.conf files in that directory
  • a map will contain the rule identifiers as key
  • for every test that starts with the ID of the rule, we add a counter or similar to the map
  • after running all tests, we can display a summary of the map based on keys empty/with content.

Output

  • summary of the tests run plus the coverage percentage based on the map
@fzipi fzipi added the enhancement New feature or request label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant