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 tests for hgs react #82

Closed
chanomkaimuk opened this issue Jul 13, 2024 · 0 comments · Fixed by #124
Closed

Add tests for hgs react #82

chanomkaimuk opened this issue Jul 13, 2024 · 0 comments · Fixed by #124
Labels
tests Tests for a feature are needed

Comments

@chanomkaimuk
Copy link
Contributor

  • HGS reacts are defined in resources/reacts/hgs.json
    • Use keywords in criteria as positive test cases (cases that produce a match)
  • Create a test file in tests/test_reacts/ to test for hgs test cases.
  • The easiest way is to use the tests/test_reacts/test_reacts_cz.py as a reference.
  • To locally test the code: run poetry run python -m pytest tests/ -v -s. You can also just push the code as it will also trigger the actions, but it will take some time.
@chanomkaimuk chanomkaimuk added the tests Tests for a feature are needed label Jul 13, 2024
@Tikari55 Tikari55 linked a pull request Oct 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests for a feature are needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant