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

Enable reporting of software metrics #1204

Merged
merged 2 commits into from
Oct 26, 2024
Merged

Enable reporting of software metrics #1204

merged 2 commits into from
Oct 26, 2024

Conversation

uhafner
Copy link
Owner

@uhafner uhafner commented Oct 25, 2024

See quality monitor.

@uhafner uhafner added the feature New features label Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.30%. Comparing base (de8bcf1) to head (a227815).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1204   +/-   ##
=========================================
  Coverage     88.30%   88.30%           
  Complexity      164      164           
=========================================
  Files            11       11           
  Lines           684      684           
  Branches         85       85           
=========================================
  Hits            604      604           
  Misses           63       63           
  Partials         17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Partial score: 0/0

🚧 The grading has been aborted due to an error.

Exception

edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Error Messages

Quality Monitor Errors:
An error occurred while grading
edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Information Messages

--------------------------------------------------------------------------------
                    Start Quality Monitor 1.11.0 (#99404b7)                     
--------------------------------------------------------------------------------
Obtaining configuration from environment variable CONFIG
================================================================================
Processing 1 test configuration(s)
Tests Configuration:
{
  "id" : "tests",
  "name" : "Tests",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "test",
    "name" : "Tests",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureRulesTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.EnsureTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.FilteredLogTest.xml: TESTS: 11
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeListTest.xml: TESTS: 6
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeTest.xml: TESTS: 3
- target/surefire-reports/TEST-edu.hm.hafner.util.LookaheadStreamTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.PackageArchitectureTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.PathUtilTest.xml: TESTS: 24
- target/surefire-reports/TEST-edu.hm.hafner.util.PrefixLoggerTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.ResourceExtractorTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.SecureXmlParserFactoryTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.StringComparableTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.StringEqualsTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.TreeStringBuilderTest.xml: TESTS: 5
-> Tests Total: TESTS: 97
-> Tests Total: TESTS: 97 tests
=> Tests: 95 tests passed, 2 skipped
=> Tests: 95 tests passed, 2 skipped
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "branch",
    "displayName" : "Branch Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : false
}
Searching for Line Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: LINE: 90.79% (621/684)
-> Line Coverage Total: LINE: 90.79% (621/684)
=> Line Coverage: 91% (63 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 91.28% (199/218)
-> Branch Coverage Total: BRANCH: 91.28% (199/218)
=> Branch Coverage: 91% (19 missed branches)
=> Code Coverage: 91% (82 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "pattern" : "**/target/pit-reports/mutations.xml",
    "sourcePath" : "src/main/java",
    "metric" : "mutation",
    "displayName" : "Mutation Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : true
}
Searching for Mutation Coverage results matching file name pattern **/target/pit-reports/mutations.xml
- target/pit-reports/mutations.xml: MUTATION: 79.63% (305/383)
-> Mutation Coverage Total: MUTATION: 79.63% (305/383)
=> Mutation Coverage: 80% (78 survived mutations)
=> Mutation Coverage: 80% (78 survived mutations)
================================================================================
Processing 3 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "checkstyle"
  }, {
    "id" : "pmd",
    "name" : "",
    "pattern" : "**/target/**pmd.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "pmd"
  } ],
  "errorImpact" : 0,
  "highImpact" : 0,
  "normalImpact" : 0,
  "lowImpact" : 0
}
Searching for CheckStyle results matching file name pattern **/target/**checkstyle-result.xml
- target/checkstyle-java/checkstyle-result.xml: 0 warnings
- target/checkstyle-tests/checkstyle-result.xml: 0 warnings
-> CheckStyle Total: 0 warnings
=> CheckStyle: No warnings
Searching for PMD results matching file name pattern **/target/**pmd.xml
- target/pmd-java/pmd.xml: 0 warnings
================================================================================
================================================================================

Created by Quality Monitor v1.11.0 (#99404b7). More details are shown in the GitHub Checks Result.

@uhafner uhafner merged commit 322023d into main Oct 26, 2024
17 checks passed
@uhafner uhafner deleted the metrics branch October 26, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant