SonarQube Process Test Coverage Plugin NaN Error - "NaN is not allowed as a Measure value" #176
Unanswered
saurabh-zinnia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Summary
I'm experiencing a critical error with the SonarQube Process Test Coverage plugin that causes the SonarQube compute engine to fail with a NaN is not allowed as a Measure value error during the Quality Gate step. This prevents the analysis from completing successfully.
Technical Environment
Error Details
Full Stack Trace
Project Configuration
Maven pom.xml (Relevant Sections)
Test Setup
The process test coverage is generated using a comprehensive test class with multiple test methods covering different BPMN process paths:
Generated Coverage Data
Coverage Report Structure
Location: target/process-test-coverage/
Reports Generated:
- target/process-test-coverage/org.camunda.bpm.demo.coverage.DataFormatProcessCoverageTest/report.json (69,297 bytes)
- target/process-test-coverage/all/report.json (69,297 bytes, aggregated)
Coverage Results
Test Coverage: 70.59% overall test class coverage
Individual Tests: Coverage ranging from 38.9% to 100% per test method
Processes Covered:
KafkaDemo (18 total elements)
- DataformatDemoProcess (16 total elements)
- order-process (17 total elements)
Sample Coverage Data (JSON)
The generated JSON contains detailed execution events for each process run:
SonarQube Scanner Configuration
Plugin Configuration (as detected by scanner)
Steps to Reproduce
Analysis Results
Attempted Solutions
Key Questions
Expected Behavior
The SonarQube analysis should complete successfully and display process test coverage metrics alongside traditional code coverage metrics in the SonarQube dashboard.
Additional Context
The process test coverage library itself works correctly - generating valid HTML and JSON reports
The error specifically occurs during the SonarQube Quality Gate computation step
The plugin successfully imports reports (logs show "2 reports imported") before failing
This appears to be a numeric calculation issue in the SonarQube plugin's metric computation
Has anyone encountered this NaN error with the Process Test Coverage plugin? Any insights into what might cause invalid numeric calculations in the coverage metrics would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions