-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
test: add junit output option to test runner #29840
Conversation
This is sort of related to the ongoing discussion in nodejs/admin#413. |
This comment has been minimized.
This comment has been minimized.
This would be great! Or is someone knowledgeable could try out https://wiki.jenkins.io/display/JENKINS/TAP+Plugin |
@cclauss We used to use that plugin but ran into issues which is why we're now using tap2junit: nodejs/build#453 |
There's some manual tap output in various places, from memory various tests that skip they might be doing it manually. In CI we have some too, like in node-test-commit-linux-containered we do manual tap when confirming some things with Bash. Having follow-up JUint isn't going to work as well as follow-up tap so we're going to need to figure a way around that. |
yeah, skips were consolidated into |
oh, maybe this is parsing stdout from the tests so that doesn't matter? then we just need a solution for things like this in https://ci.nodejs.org/job/node-test-commit-linux-containered (and perhaps elsewhere) if [ X"$(echo $OPENSSL_VERSION | grep 1\.1\.0)" = X"" ]; then
FAIL_MSG="Not built with OpenSSL 1.1.0, exiting"
echo $FAIL_MSG
echo "1..1" > ${WORKSPACE}/test.tap
echo "not ok 1 $FAIL_MSG" >> ${WORKSPACE}/test.tap
exit -1
fi |
Skipping via |
@rvagg Yeah I don't think this on its own will magic away completely the need for tap2junit. In addition to those examples unless this gets backported all the older release lines will still be spitting out tap from the test runner. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I remembered that we have some tooling in |
What's the status here? |
8ae28ff
to
2935f72
Compare
Ping @richardlau |
I'll close for now, I don't have the time to fix this up. |
Rather than output tap and then convert it via tap2junit into xml for our CI (to workaround bad performance uploading tap results to the builds) it might be more efficient to just output xml directly from the test runner. This PR attempts to add a
junit
output option to the test runner.Things I can think of that still need looking at (hence currently WIP):
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes