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

Output results in a scriptable format #40

Open
skuzzle opened this issue Jul 22, 2019 · 1 comment
Open

Output results in a scriptable format #40

skuzzle opened this issue Jul 22, 2019 · 1 comment

Comments

@skuzzle
Copy link
Owner

skuzzle commented Jul 22, 2019

Dependency failures might be written in junit xml format to the target folder in order to display such failures in CI environments.

Here is the format apprently used by Jenkins: https://llg.cubic.org/docs/junit/

@skuzzle
Copy link
Owner Author

skuzzle commented Jun 8, 2021

Draft XML to produce:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite 
    name="de.skuzzle.TestClassName" 
    tests="10"   <!-- max(ban pattern count, failures found) -->
    disabled="0" <!-- Always 0 -->
    errors="0"   <!-- Always 0 -->
    failures="5" <!-- Number of banned imports found in that class. -->
    skipped="0"  <!-- 0, unless skipFlag is true. In that case its the total number of   -->
    timestamp="2014-01-21T16:17:18"
    >
    
    <testcase 
        name="de.skuzzle.packagepattern.**"      <!-- The matched banned pattern -->
        classname="de.skuzzlepackagepattern.Xyz" <!-- The matched class -->
        time="0"                                 <!-- Always 0 -->
        >
        
        <failure 
            message="reason" <!-- The reason phrase of the matched group -->
        ></failure>
    </testcase
</testsuite>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant