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

More negative test cases #22

Merged
merged 4 commits into from
Dec 5, 2024
Merged

More negative test cases #22

merged 4 commits into from
Dec 5, 2024

Conversation

jonsmock
Copy link
Collaborator

@jonsmock jonsmock commented Dec 3, 2024

This adds some missing test cases to support future refactoring/simplification of the control flow and exception handling.

I've also added a 'depends' to the 'maybe-skipped' example. While the total passed/failed counts have been reliable, my understanding is that test ordering is not actually guaranteed without 'depends'.

Ensure 'expect' conditions/assertions are actually evaluated.
Without 'depends', test ordering is not necessarily guaranteed, even if
tests tend to run in top-to-bottom order. Let's ensure 'maybe-skipped'
comes after one of the failing tests using 'depends' (any failing test
would do).
@jonsmock jonsmock requested review from kanaka and gdw2 December 3, 2024 16:14
@jonsmock
Copy link
Collaborator Author

jonsmock commented Dec 3, 2024

Aside: I'm tempted to move some of the examples into a new directory under ./test/integration to make the examples directory a bit clearer/less cluttered for users. ./test/runexamples would still run both user examples and integration tests. I haven't done it yet, as I wasn't sure if it would be too many places for tests to live. Curious if others have opinions.

@jonsmock jonsmock mentioned this pull request Dec 4, 2024
@jonsmock jonsmock merged commit b81e935 into main Dec 5, 2024
16 checks passed
@jonsmock jonsmock deleted the more-negative-test-cases branch December 5, 2024 15:24
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.

2 participants