Menu

PMD build failed due to irrelevant test

Developers
jmeter tea
2018-11-13
2018-11-14
  • jmeter tea

    jmeter tea - 2018-11-13

    I download PMD master and working with JDK 11

    I failed mvnw.cmd clean verify with the following irrelevant test:

    [ERROR] Failures:[ERROR]
    YAHTMLRendererTest.testReportMultipleViolations:109 File
    YAHTMLSampleClass1.html is different expected:<<html>[
        <head>
            <title>PMD - YAHTMLSampleClass1</title>
        </head>
        <body>
            <h2>Class View</h2>
            <h3 align="center">Class: YAHTMLSampleClass1</h3>
            <table border="" align="center" cellspacing="0" cellpadding="3">
            <tr><th>Method</th><th>Violation</th></tr>
            <tr><td></td><td><table
    border="0"><tr><td><b>Rule:</b></td><td>Foo</td></tr><tr><td><b>Description:</b></td><td>blah</td></tr><tr><td><b>Line:</b></td><td>1
    and 1</td></tr></table></td></tr>
            <tr><td></td><td><table
    border="0"><tr><td><b>Rule:</b></td><td>Foo</td></tr><tr><td><b>Description:</b></td><td>blah</td></tr><tr><td><b>Line:</b></td><td>1
    and 1</td></tr></table></td></tr>
            </table>
        </body></html>]> but was:<<html>[
        <head>
            <title>PMD - YAHTMLSampleClass1</title>
        </head>
        <body>
            <h2>Class View</h2>
            <h3 align="center">Class: YAHTMLSampleClass1</h3>
            <table border="" align="center" cellspacing="0" cellpadding="3">
            <tr><th>Method</th><th>Violation</th></tr>
            <tr><td></td><td><table
    border="0"><tr><td><b>Rule:</b></td><td>Foo</td></tr><tr><td><b>Description:</b></td><td>blah</td></tr><tr><td><b>Line:</b></td><td>1
    and 1</td></tr></table></td></tr>
            <tr><td></td><td><table
    border="0"><tr><td><b>Rule:</b></td><td>Foo</td></tr><tr><td><b>Description:</b></td><td>blah</td></tr><tr><td><b>Line:</b></td><td>1
    and 1</td></tr></table></td></tr>
            </table>
        </body>]/html>>
    
     

    Last edit: jmeter tea 2018-11-14
  • Andreas Dangel

    Andreas Dangel - 2018-11-13

    This might be a lineending issue (windows vs. unix). I assume, you are using Windows? (because you used mvnw.bat).

    How did you get the source code? Did you do a git clone or did you use a source archive?
    Would you mind creating an issue on https://github.com/pmd/pmd/issues with these details?
    Thanks!

     
    • jmeter tea

      jmeter tea - 2018-11-14

      I'm using Windows and I download source as a zip
      Created a new issue https://github.com/pmd/pmd/issues/1462
      Is there a workaround?

       

      Last edit: jmeter tea 2018-11-14

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.