-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add junit-output-to option #11
Conversation
f6fcd32
to
12bdc1d
Compare
The build should be green once #12 is merged |
I'll change |
7006bf9
to
0c37e41
Compare
Rebased to master |
0c37e41
to
e3bf6b3
Compare
Rebased to master. @alandipert: Let me know if you want me to squash the two commits into one. |
@alandipert: junit-output-to is an asset path in the fileset now. How does it look? |
I have the feeling that passing the absolute path of the tmp-dir to the pod is not a good usage of the fileset, and thus the files might be missing from the output dir... But how should I do it? I can't find an example of writing to a |
The general pattern is, the caller creates a tmp-dir and passes the path to On Tue, Oct 27, 2015 at 6:18 PM, Nicolás Berger notifications@github.com
|
Thanks, makes sense. I understand that's exactly what I'm doing. The issue now is that when there is a test failure, the task will throw even before getting to the Any idea? |
Well, I guess I can call |
Done, but still doesn't work, because |
Just added some commits that make this to work by using the new Includes a refactoring that extracts a Let me know what you think about this new version @alandipert. Bumping dependency to boot 2.5.1 might be an issue... Also if you want me to extract the |
Decouples running the tests from what to do on test errors or failures. `test` is now a task composed of `run-tests` which runs the tests and saves the summary as metadata, and an inline task that throws an exception when it finds errors or failures in that summary. Having the test summary as fileset metadata will allow for further processing in downstream tasks.
Uses clojure.test.junit to generate a junit formatted xml file in junit-output-to path in target for each test ns. Uses the target task to sync the target before throwing on test errors or failures.
089801f
to
e8b6ed6
Compare
Avoids creating an additional output file to hold the test summary
c.t.junit report fn makes calls to t/inc-report-counter, but our call to old-report is already doing that, so to avoid having all the counters duplicated we just bind a dummy counters map when calling junit-report
Rebased to master & squashed into more reasonable commits (as agreed with @micha in slack). Also added two changes:
|
When present, it uses
clojure.test.junit
to output a junit formatted xml file in thejunit-output-to
directory for each test ns.Output to stdout will be the same as if the option was not present.
Part of #9