I have instrumented a sample java program in windows, using clover-ant and was able to get the coverage info when running the .jar file using commandline.
Query : How to run an instrumented build in Linux.
Plan A : I tried using the same build which we instrumented in windows and tried runnning the same in linux environment by using the same clover.jar and same coverage.db file. (This didnt work out because the clover.jar path in windows cant be matched to any similar path in linux, similarly the same issue with initstring)
Plan B : Installed ant in the linux environment, copied the same java project in to linux machine, modified the build.xml to the expected paths of clover.jar present in the linux machine. When trying to run the .jar file I am seeing the below error :
/home/sv186037/Desktop/code_coverage/CloverInstrumentBuild/build/jar/CIB.jar: line 1: $'PK\003\004': command not found
/home/sv186037/Desktop/code_coverage/CloverInstrumentBuild/build/jar/CIB.jar: line 2: $'\bS#\261J': command not found
/home/sv186037/Desktop/code_coverage/CloverInstrumentBuild/build/jar/CIB.jar: line 3: syntax error near unexpected token `)'
/home/sv186037/Desktop/code_coverage/CloverInstrumentBuild/build/jar/CIB.jar: line 3:R#�J�C8�s�META-INF/MANIFEST.MFM�1�0
Hello, Atlassian Community! I thought it would be fun to do something different for my teams' last retrospective of 2019 so I'm planning to do a "year in review" with info-graphics. Wha...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events