pitest

PIT no mutations found

孤街浪徒 提交于 2021-02-10 06:46:33
问题 C:\Users\TZ>java -cp C:\Users\TZ\Desktop\femr-master\pitest-command-line- 1.2.4.jar;C:\Users\TZ\Desktop\femr-master\pitest- 1.2.4.jar;C:\Users\TZ\Desktop\femr-master\pitest-entry- 1.2.4.jar;C:\Users\TZ\Desktop\femr-master\junit- 4.12.jar;C:\Users\TZ\Desktop\batch-import-3.0\target\batch-import- 3.0.4.jar;C:\Users\TZ\Desktop\femr- master\xmlpull_1_0_5.jar;C:\Users\TZ\Desktop\femr-master\xstream-1.4.10.jar org.pitest.mutationtest.commandline.MutationCoverageReport --reportDir C:\Users\TZ

Pitest can't detect class of test

爱⌒轻易说出口 提交于 2020-01-10 06:09:28
问题 i have problem with my configuration of maven and pitest. Pitest generation mutation is ok but he can't see my class of test .. if you have any solution :D I have main source like that /src/main/java/com.plugin..... .java I have test source like that /src/test/java/com.plugin.... .java pom.xml config : <plugin> <groupId>org.pitest</groupId> <artifactId>pitest-maven</artifactId> <version>1.1.9</version> <configuration> <targetClasses> <param>com.plugin.business.centre*</param> </targetClasses>

Pitest can't detect class of test

给你一囗甜甜゛ 提交于 2020-01-10 06:09:14
问题 i have problem with my configuration of maven and pitest. Pitest generation mutation is ok but he can't see my class of test .. if you have any solution :D I have main source like that /src/main/java/com.plugin..... .java I have test source like that /src/test/java/com.plugin.... .java pom.xml config : <plugin> <groupId>org.pitest</groupId> <artifactId>pitest-maven</artifactId> <version>1.1.9</version> <configuration> <targetClasses> <param>com.plugin.business.centre*</param> </targetClasses>

Run Pitest from the command line

孤街醉人 提交于 2019-12-23 08:28:59
问题 According to Pitest's documentation, it seems that this should be simple, but it is giving me some trouble. I should be able to have java -cp <your classpath> \ org.pitest.mutationtest.commandline.MutationCoverageReport \ --reportDir c:\\mutationReports \ --targetClasses example.foo.* \ --sourceDirs c:\\myProject\\src \ --targetTests example.foo* but I don't know what some of those things should be for my project, such as "<your classpath>". My project's file structure looks like this:

Run Pitest from the command line

泪湿孤枕 提交于 2019-12-23 08:28:11
问题 According to Pitest's documentation, it seems that this should be simple, but it is giving me some trouble. I should be able to have java -cp <your classpath> \ org.pitest.mutationtest.commandline.MutationCoverageReport \ --reportDir c:\\mutationReports \ --targetClasses example.foo.* \ --sourceDirs c:\\myProject\\src \ --targetTests example.foo* but I don't know what some of those things should be for my project, such as "<your classpath>". My project's file structure looks like this:

pitest doesn't find tests

人走茶凉 提交于 2019-12-23 02:25:22
问题 I am facing a problem with the SonarQube project. I want to calculate some statistics about test quality and I am using pitest. Unfortunately, it doesn't find any test to mutate. This is the pom.xml of the module that I am analyzing: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0

pitest not running correctly

倾然丶 夕夏残阳落幕 提交于 2019-12-13 01:52:40
问题 I am trying to run pitest on some sourcecode. Now it is complaining that it didn't find any mutations. Using the verbose instruction didn't show any issues for me. See the following output: C:\Users\lukkezenm\workspace\pittest\pittest>gradlew pitest :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :compileImplJava UP-TO-DATE :processImplResources UP-TO-DATE :implClasses UP-TO-DATE :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE

Exception in thread “main” org.pitest.help.PitHelpError, while trying to run Android Application with Activity as Pit Mutation Testing

强颜欢笑 提交于 2019-12-12 03:31:40
问题 I have created one Android project in Eclipse, and I got successfully Pit Mutation coverage report with line and mutation coverage, while I have removed " Extend Activity " and " onCreate() ". but if I'm trying to get coverage with Android Activity and its life cycle Pit Mutation Test giving me error. Exception in thread "main" org.pitest.help.PitHelpError: All tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.See http://pitest.org for

Android: How to run PIT Mutation Testing with Robolectric?

瘦欲@ 提交于 2019-12-10 20:22:24
问题 How to use Robolectric and PIT for testing an Android Application? With Robolectric, you can run Android Tests in the JVM. With PIT you can show line coverage and do mutation testing. For me, it's ok use Eclipse+Plugins, but no requirement. This is what I have tried so far: I have an Android Project, let's call it MyProject . I now want to test MyProject in the JVM using Robolectric and PIT. Therefore, I created another Project called MyTest and managed to run Robolectric tests successfully,

PITest cannot find tests

我们两清 提交于 2019-12-10 11:14:52
问题 Our projects are all set up with a master parent for the entire company. For the project I'm working on, we have a root pom that references that parent with many modules underneath it. Attempting to use PITest with any one of these modules individually, or at the root module results in no test being run. λ lp-server-write mvn clean org.pitest:pitest-maven:mutationCoverage [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for