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

fix #14242 testament r tests/js/foo now works; testament now honors --targets #16163

Merged
merged 2 commits into from
Nov 28, 2020

Conversation

timotheecour
Copy link
Member

fix #14242

@timotheecour timotheecour marked this pull request as ready for review November 28, 2020 07:01
if not targetsSet:
let target = if cat.string.normalize == "js": targetJS else: targetC
targets = {target}
doAssert fileExists(test), test & " test does not exist"
Copy link
Member

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.

Copy link
Member Author

@timotheecour timotheecour Nov 28, 2020

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)

Copy link
Member

@Araq Araq Nov 28, 2020

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.

@Araq Araq merged commit 1d786c0 into nim-lang:devel Nov 28, 2020
@Araq
Copy link
Member

Araq commented Nov 28, 2020

we can discuss how to properly fix this in subsequent PR

Totally agree with that, merged it.

@timotheecour timotheecour deleted the pr_testament_targets_r branch November 28, 2020 19:35
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
…w honors --targets (nim-lang#16163)

* fix nim-lang#14242 `testament r tests/js/foo` now works; testament now honors --targets

* fix shouldfail
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
…w honors --targets (nim-lang#16163)

* fix nim-lang#14242 `testament r tests/js/foo` now works; testament now honors --targets

* fix shouldfail
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.

testament r doesn't honor --targets:js nor what's in the spec
4 participants