-
Notifications
You must be signed in to change notification settings - Fork 6
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
Run playgrounds and check whether they throw uncaught exceptions #111
Labels
enhancement
New feature or request
Comments
This issue will be continued on #176 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run swift
MyPlayground.playground/Contents.swift
where MyPlayground is a simple playground with just this content:I can tell that the playground raised an uncaught exception by inspecting the exit code of the command.
I guess the same idea can be adapted to the playgrounds nef generates.
This would be useful because I could add XCTest assertions on my playground and nef would check for me that they all pass (just like python's doctest)
For simple projects it's useful to just have the documentation be also the unit tests.
Maybe this behavior can be guarded with a new command-line argument.
The text was updated successfully, but these errors were encountered: