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

[feature-request] Enable report JUnit format #23

Open
v1v opened this issue Jun 12, 2019 · 0 comments
Open

[feature-request] Enable report JUnit format #23

v1v opened this issue Jun 12, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@v1v
Copy link
Member

v1v commented Jun 12, 2019

The idea is to enable this particular feature to be consumed by any CI automatically. It might be interesting to also list the files which were licensed validated too

Current format:

Call

go-licenser -d

Output

folder/y/foo.java: is missing the license header

Proposal format:

Add -junit flag to enable the output to be generated in the stdout.

Call

go-licenser -d -junit

Output

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Licenses" time="50">
  <testcase name="bar.groovy" classname="folder.x" time="0"/>
  <testcase name="foo.java" classname="folder.y" time="0">
    <error message="folder/y/foo.java: is missing the license header"></error>
  </testcase>
</testsuite>

UI View in Jenkins (as an example)

image

The JUnit schema can be found below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants