hcoles / pitest-ant-example Goto Github PK
View Code? Open in Web Editor NEWSimple example of using pitest with ant
Simple example of using pitest with ant
I have run pitest-ant-example successfully, however, when I add 'exportLineCoverage' in the , the build wil fail:
/home/lizj2018/research/dl_fl/pitest-ant-example/build.xml:119: pitest doesn't support the "exportLineCoverage" attribute
However, I have read the code the Pitest of release 1.2.0, and there are options for "exportLineCoverage" in ConfigOptions.java. So why is it not working?
Thanks.
Code works perfectly but I want to apply the same code to other projects instead of reentering the path to the target classes I want it to search for all classes in the parent and subfolder? I thought just entering * would work but it doesn't and gives me this cause it considers all classes in Pit itself. lol
Any way I can get all files in a subfolder instead of telling it exactly where the files are.
The ant example is failing with the latest PIT 1.15.3 for me. I did upgrade the pitest libs to 1.15.3. Build failed with the below info:
pit:
[pitest] Exception in thread "main" java.lang.NoSuchMethodError: org.pitest.plugin.Feature.isMissing()Z
[pitest] at org.pitest.mutationtest.config.PluginServices.lambda$adjustMissingFeatures$1(PluginServices.java:118)
[pitest] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
[pitest] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
[pitest] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
[pitest] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
[pitest] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
[pitest] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[pitest] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
[pitest] at org.pitest.mutationtest.config.PluginServices.adjustMissingFeatures(PluginServices.java:119)
[pitest] at org.pitest.mutationtest.config.PluginServices.findListeners(PluginServices.java:85)
[pitest] at org.pitest.mutationtest.config.PluginServices.findToolClasspathPlugins(PluginServices.java:47)
[pitest] at org.pitest.mutationtest.config.PluginServices.findFeatures(PluginServices.java:105)
[pitest] at org.pitest.mutationtest.config.SettingsFactory.checkRequestedFeatures(SettingsFactory.java:121)
[pitest] at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:84)
[pitest] at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:57)
[pitest] at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:98)
[pitest] at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)
BUILD FAILED
What am I doing wrong?
(just drag a png from your desktop to the online editor for the readme and commit from there, if you didn't know how)
I believe the lib folder of the pitest-ant-example is out-dated. When i try to run the program with the command (ant pit) an error message appears that build failed. By adding the new pitest.jar and pitest-ant.jar files build is successful.
For anyone interested downloading the latest jar files can click the following link:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.