Re: Code coverage for NiFi processor

2018-10-06 Thread Mohammed Nadeem
Hi James,

Yes, I had used JaCoCo plugin to get the code coverage for the mocked Junit
testcases written. Copy below details to the nifi-custom-processors pom.xml
file.


jacoco

${project.basedir}/../target/jacoco.exec
java



org.jacoco
jacoco-maven-plugin
0.7.5.201505241946


pre-unit-test

prepare-agent


true
surefireArgLine



post-unit-test
test

report


${sonar.jacoco.reportPath}
true





org.apache.maven.plugins
maven-surefire-plugin
2.15

${surefireArgLine}

${skip.unit.tests}



Since I had used SonarQube for code quality check and code coverage, you
could leverage this or some other platform such as travis-cl build

Regards,
Nadeem



--
Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/


Code coverage for NiFi processor

2018-09-21 Thread James Srinivasan
Has anyone got JaCoCo (or similar) working with a custom processor
created from the archetype?

Many thanks,

James