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

tests: improve tests to make coverage 100% #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilyaZar
Copy link
Contributor

@ilyaZar ilyaZar commented Jul 4, 2023

Fix #19

For details the commit message but notably the current implementation does not check for #17, as only tests regarding the class are implemented so far.

So one might want to keep that in mind for a later update to the test files.

Otherwise on my machine:

image

@ilyaZar ilyaZar force-pushed the fix-19 branch 2 times, most recently from df23cb1 to 18c8281 Compare July 6, 2023 07:34
- add a test for the talkative feature on (talkative = TRUE)
- add tests for function on()
    - test output class of the obsereEvent()
    - test for errors i.e. when inits could not be found due to globally uninitialized event; check error messages specifically
    - test for errors i.e. when inits could not be found due to session missmatch; check error messages specifically
- regroup tests for readability:
    - a single test_that() for functions init/watch/trigger (with
      talkative feature on/off)
    - a single test_that() for on()
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

Successfully merging this pull request may close these issues.

FR: make {gargoyle} test coverage 100%
1 participant