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

When _run=false don't schedule the testitem #93

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

nickrobinson251
Copy link
Collaborator

_run::Bool=false is used for testing the @testitem macro itself, as it disables the running of the @testitem and instead just returns the created TestItem object, which can then be inspected as part of testing... however, we were accidentally only respecting _run when outside of a runtests() call. If inside a runtests() call, we were still scheduling the test-item to run... but we don't want the test-item to ever run if _run=false.

@nickrobinson251 nickrobinson251 merged commit 877bd28 into main Jul 3, 2023
@nickrobinson251 nickrobinson251 deleted the npr-respect-run-always branch July 3, 2023 19:31
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