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 report #107
Comments
TAP is a very common, cross-language test output format. Due to being a pseudo lingua-franca of test report outputs, there are dozens of converters from TAP to other formats. Simply piping the TAP output to other formats will get you junit output without any modification to bats. For instance: https://github.com/aghassemi/tap-xunit via As it stands, the current formatter could be shipped as a standalone TAP converter that just receives Bats' TAP output. Creating a separate bats-xunit project would be a fine repo for future inclusion in a potential bats-core github org. I just don't think it should necessarily be bundled within bats itself. related upstream issue: sstephenson/bats#161 |
We use Gitlab CI and it has recently gained JUNIT test results import and display - but this is the only format it supports so far. (https://gitlab.com/gitlab-org/gitlab-ce/issues/17081) Very interested in following where this goes. |
I think it's valuable to produce jUnit output right here in bats:
|
FTR there is no JUnit Schema (XSD or otherwise). The XML format originates from Ant and there was no strict schema defined at the time. I still think a native JUnit report would be useful for sake of timing though. Another reason is that installing node just to convert the output format seems excessive |
True. But either way, people do use timing information in their jUnit test results.
I'm with you there. However, in the end I rolled my own post-processor: https://github.com/filmil/tap2junit. I'm not a big fan of more bash. :) |
Nice. Unfortunately |
It is not. Go is not an interpreted language. tap2junit is a binary. |
It seems this feature request is solved since the release of bats-core 1.2.1 it is now possible to just run |
The bulk of this feature is done but details like the output and cli options have not settled yet. |
There is still some movement on the details but I think the issue here is done. |
Hi,
please add a junit report option,
as a flag to the run:
should be like
bats (test files/folder) --junit
The text was updated successfully, but these errors were encountered: