OWASP-Benchmark / BenchmarkUtils

OWASP Benchmark Project Utilities - Provides scorecard generation and crawling tools for Benchmark style test suites.
https://owasp.org/www-project-benchmark/
GNU General Public License v3.0
13 stars 48 forks source link

mvn install errors #83

Open njarbot opened 4 days ago

njarbot commented 4 days ago

[ERROR] Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.006 s <<< FAILURE! -- in org.owasp.benchmarkutils.score.report.FormatsTest [ERROR] org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForSingleDecimalPlace -- Time elapsed: 0.004 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: <12.3> but was: <12,3> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177) at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145) at org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForSingleDecimalPlace(FormatsTest.java:41) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForFourDecimalPlaces -- Time elapsed: 0.001 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: <12.3457> but was: <12,3457> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177) at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145) at org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForFourDecimalPlaces(FormatsTest.java:36) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForTwoDecimalPlacesPercentage -- Time elapsed: 0 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: <1234.57%> but was: <1234,57%> at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177) at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145) at org.owasp.benchmarkutils.score.report.FormatsTest.hasFormatterForTwoDecimalPlacesPercentage(FormatsTest.java:31) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[INFO] Running org.owasp.benchmarkutils.score.report.html.MenuUpdaterTest INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.269 s -- in org.owasp.benchmarkutils.score.report.html.MenuUpdaterTest [INFO] Running org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. [ERROR] Tests run: 6, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.020 s <<< FAILURE! -- in org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest [ERROR] org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.createsResultTableWithPrecision -- Time elapsed: 0.004 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.createsResultTableWithPrecision(VulnerabilityStatsTableTest.java:363) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.createsResultTableForTools -- Time elapsed: 0.004 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.createsResultTableForTools(VulnerabilityStatsTableTest.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.showsDangerColumns -- Time elapsed: 0.003 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.showsDangerColumns(VulnerabilityStatsTableTest.java:195) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.showsSuccessColumns -- Time elapsed: 0.003 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.VulnerabilityStatsTableTest.showsSuccessColumns(VulnerabilityStatsTableTest.java:154) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[INFO] Running org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. [ERROR] Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.013 s <<< FAILURE! -- in org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest [ERROR] org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.createsAveragesTable -- Time elapsed: 0.005 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.createsAveragesTable(CommercialAveragesTableTest.java:114) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.showsDangerColumns -- Time elapsed: 0.003 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.showsDangerColumns(CommercialAveragesTableTest.java:236) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.showsSuccessColumns -- Time elapsed: 0.003 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.CommercialAveragesTableTest.showsSuccessColumns(CommercialAveragesTableTest.java:180) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[INFO] Running org.owasp.benchmarkutils.score.report.html.HtmlStringBuilderTest [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in org.owasp.benchmarkutils.score.report.html.HtmlStringBuilderTest [INFO] Running org.owasp.benchmarkutils.score.report.html.ToolScorecardTest INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. Scorecard written to: /var/folders/3n/4rgb8r954vx7gm3n6l21br3m0000gn/T/Benchmark.ToolScorecardTest17078997376565334243/Benchmark_v1.2_Scorecard_for_Some_Tool_v1.0.html INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. Scorecard written to: /var/folders/3n/4rgb8r954vx7gm3n6l21br3m0000gn/T/Benchmark.ToolScorecardTest9045496140807174082/Benchmark_v1.2_Scorecard_for_Some_Tool_v1.0.html [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.469 s -- in org.owasp.benchmarkutils.score.report.html.ToolScorecardTest [INFO] Running org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. [ERROR] Tests run: 6, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.011 s <<< FAILURE! -- in org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest [ERROR] org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.createsResultTableWithPrecision -- Time elapsed: 0.002 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.createsResultTableWithPrecision(OverallStatsTableTest.java:315) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.createsResultTableForTools -- Time elapsed: 0.002 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.createsResultTableForTools(OverallStatsTableTest.java:93) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.showsDangerColumns -- Time elapsed: 0.002 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.showsDangerColumns(OverallStatsTableTest.java:173) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[ERROR] org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.showsSuccessColumns -- Time elapsed: 0.001 s <<< FAILURE! org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31) at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183) at org.owasp.benchmarkutils.score.report.html.OverallStatsTableTest.showsSuccessColumns(OverallStatsTableTest.java:139) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)

[INFO] Running org.owasp.benchmarkutils.score.service.ResultsFileCreatorTest INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. Actual results file generated: /var/folders/3n/4rgb8r954vx7gm3n6l21br3m0000gn/T/Benchmark.ResultsFileCreatorTest13960439704588989434/TestSuite_v1.2_Scorecard_for_Full_Details_Result_File_v47.11.csv INFO: Default YAML Scoring config file found and loaded. INFO: YAML Scoring config file found and loaded. Actual results file generated: /var/folders/3n/4rgb8r954vx7gm3n6l21br3m0000gn/T/Benchmark.ResultsFileCreatorTest9584560935563089308/TestSuite_v1.2_Scorecard_for_Simple_Result_File_v47.11.csv Actual results file generated: /var/folders/3n/4rgb8r954vx7gm3n6l21br3m0000gn/T/Benchmark.ResultsFileCreatorTest9584560935563089308/TestSuite_v1.2_Scorecard_for_Simple_Result_File_v47.11.csv [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 s -- in org.owasp.benchmarkutils.score.service.ResultsFileCreatorTest [INFO] Running org.owasp.benchmarkutils.score.service.ExpectedResultsProviderTest [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s -- in org.owasp.benchmarkutils.score.service.ExpectedResultsProviderTest [INFO] Running org.owasp.benchmarkutils.score.domain.TestSuiteNameTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in org.owasp.benchmarkutils.score.domain.TestSuiteNameTest [INFO] Running org.owasp.benchmarkutils.score.ConfigurationTest [INFO] Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 s -- in org.owasp.benchmarkutils.score.ConfigurationTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] FormatsTest.hasFormatterForFourDecimalPlaces:36 expected: <12.3457> but was: <12,3457> [ERROR] FormatsTest.hasFormatterForSingleDecimalPlace:41 expected: <12.3> but was: <12,3> [ERROR] FormatsTest.hasFormatterForTwoDecimalPlacesPercentage:31 expected: <1234.57%> but was: <1234,57%> [ERROR] CommercialAveragesTableTest.createsAveragesTable:114 expected: but was: [ERROR] CommercialAveragesTableTest.showsDangerColumns:236 expected: but was: [ERROR] CommercialAveragesTableTest.showsSuccessColumns:180 expected: but was: [ERROR] OverallStatsTableTest.createsResultTableForTools:93 expected: but was: [ERROR] OverallStatsTableTest.createsResultTableWithPrecision:315 expected: but was: [ERROR] OverallStatsTableTest.showsDangerColumns:173 expected: but was: [ERROR] OverallStatsTableTest.showsSuccessColumns:139 expected: but was: [ERROR] VulnerabilityStatsTableTest.createsResultTableForTools:103 expected: but was: [ERROR] VulnerabilityStatsTableTest.createsResultTableWithPrecision:363 expected: but was: [ERROR] VulnerabilityStatsTableTest.showsDangerColumns:195 expected: but was: [ERROR] VulnerabilityStatsTableTest.showsSuccessColumns:154 expected: but was: [INFO] [ERROR] Tests run: 243, Failures: 14, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for OWASP Benchmark Utilities Parent POM 1.3: [INFO] [INFO] OWASP Benchmark Utilities Parent POM ............... SUCCESS [ 1.136 s] [INFO] OWASP Benchmark Utilities Library .................. SUCCESS [ 0.398 s] [INFO] OWASP Benchmark Maven Plugin ....................... FAILURE [ 7.378 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.946 s [INFO] Finished at: 2024-06-24T11:16:02+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on project benchmarkutils-maven-plugin: There are test failures. [ERROR] [ERROR] Please refer to /Users/nilsjarbot/BA/webapps/BenchmarkJava/BenchmarkUtils/plugin/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :benchmarkutils-maven-plugin

why am I getting this error when I execute mvn install inside the BenchmarkUtils folder? I have Java 11 and Apache Maven 3.9.8 installed. I followed the instructions how to install the plugin. Cloned the repo, changed the directory in to Benchmarkutils and executed mvn install. Help Please. I need this for a thesis.

davewichers commented 4 days ago

I can't replicate this error, but I'm using Maven 3.6.3 w/Java 11. Can you try to back off your Maven version to see if that has any affect? @darkspirit510 - Can you upgrade to the same version of Maven and see if you can replicate this issue and let us know what you find out either way?

njarbot commented 4 days ago

I got it running when I checked out to this 5f4369e10425dd59318f14e74183a39ed64753af commit. Then I executed mvn install still with Java 11 and Maven 3.9.8 and the build process of the plugin worked. But Yes I can try to go back to Maven 3.6.3 and execute it again with the HEAD pointing to the newest commit. I will let you know if it worked shortly

njarbot commented 4 days ago

Ok I just did what you told me. With Maven 3.6.3 and Java 11 I had no issues building the plugin.

darkspirit510 commented 4 days ago

Hi @njarbot,

Thank you for the stacktrace! From reading the exception, I guess this is a locale issue (although I'm from Germany, my Mac is set to english and I built my assertions against this setup). I'll check this and if it's actually the reason, there'll be a PR making it more robust 😉

darkspirit510 commented 1 day ago

Hi @njarbot, I fixed the locale to US so this hopefully doesn't happen again. To be honest, I'm not sure how to test this... Sascha