Skip to content
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

Open
nirtal85 opened this issue Jun 21, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@nirtal85
Copy link

commented Jun 21, 2018

Hi,
please add a junit report option,
as a flag to the run:
should be like bats (test files/folder) --junit

@jasonkarns

This comment has been minimized.

Copy link
Member

commented Jun 21, 2018

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 bin/bats --tap test | tap-xunit would generate xunit output.

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

@DarwinJS

This comment has been minimized.

Copy link

commented Aug 13, 2018

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.

@filmil

This comment has been minimized.

Copy link

commented Aug 14, 2018

I think it's valuable to produce jUnit output right here in bats:

@josegonzalez josegonzalez referenced a pull request that will close this issue Oct 12, 2018

Open

Add a JUnit output formatter compatible with Jenkins #153

2 of 2 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.