-
Notifications
You must be signed in to change notification settings - Fork 5
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
Integration test for Koans archetype that runs koans #200
Comments
…on test that runs "java:exec" with the grader profile enabled.
…ble to enable the grader profile.
I wrote the test, but it's not passing because the JVM returns an exit code of 255 when there is any failing koan. When the "interactive = false" feature was added to the koans (matyb/java-koans#57) @matyb mentioned that the koans JVM would return a non-zero code when one of them failed. That sounds really reasonable, but I don't know if I'll be able to get the integration test to pass. It looks the Maybe I should modified the koans infrastructure to exit with a non-zero code under specific circumstances. Hmm. |
nice to see there's still use cases i hadn't considered :) not really sure how to avoid that without weirding up your build or modifying the koans lib itself. just off the cuff, had these ideas:
|
Hey, @matyb. I was leaning towards the first option. Thank you for the breadcrumbs. I'll give it a try on my fork and, if it works for me, I'll put up a pull request on the upstream. |
Now that I've figured out how to write an integration test for an archetype with the "grader" profile enabled (as seen in issue #197). I should write an integration test for the koans archetype that executes the
exec:java
goal with thegrader
profile enabled and then verify that the expected output was written to the integration testsbuild.log
.The text was updated successfully, but these errors were encountered: