I just integrated emma into my maven project with org.sonatype.maven.plugin:emm-maven-plugin. Works great the integration is really slick.
However when looking at the report I see: parseCommand (String): void 0% (0/1) 0% (0/18)
According to emma I did not even exercise the function in my tests.
But that function looks like: 120 private void parseCommand(String value) { 121 try { 122 Operation op = Operation.valueOf(value); 123 config.setOperation(op); 124 } catch (IllegalArgumentException e) { 125 logger.error("Failed to parse command: {}", value); 126 printUsage(); 127 exit(-1); 128 } 129 }
I have a test that specifically generates and verifies the IllegalArgumentException so it certainly got called.
What could be wrong?
Log in to post a comment.
I just integrated emma into my maven project with org.sonatype.maven.plugin:emm-maven-plugin. Works great the integration is really slick.
However when looking at the report I see:
parseCommand (String): void 0% (0/1) 0% (0/18)
According to emma I did not even exercise the function in my tests.
But that function looks like:
120 private void parseCommand(String value) {
121 try {
122 Operation op = Operation.valueOf(value);
123 config.setOperation(op);
124 } catch (IllegalArgumentException e) {
125 logger.error("Failed to parse command: {}", value);
126 printUsage();
127 exit(-1);
128 }
129 }
I have a test that specifically generates and verifies the IllegalArgumentException so it certainly got called.
What could be wrong?