-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #14242 testament r tests/js/foo
now works; testament now honors --targets
#16163
Conversation
…w honors --targets
7b47542
to
fb406bd
Compare
if not targetsSet: | ||
let target = if cat.string.normalize == "js": targetJS else: targetC | ||
targets = {target} | ||
doAssert fileExists(test), test & " test does not exist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is input validaton, not an assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree but the doAssert
is pre-existing, look at the diff.
we can discuss how to properly fix this in subsequent PR (quit
is not the answer as it doesn't play well with library integration among other issues; enforce
is the most natural fit but enforce PR #15606 is still open)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quit
is an answer until testament exposes an API. And only then we can add a callback for error handling or use a raise statement etc.
Totally agree with that, merged it. |
…w honors --targets (nim-lang#16163) * fix nim-lang#14242 `testament r tests/js/foo` now works; testament now honors --targets * fix shouldfail
…w honors --targets (nim-lang#16163) * fix nim-lang#14242 `testament r tests/js/foo` now works; testament now honors --targets * fix shouldfail
fix #14242