Skip to content

mayankchadha16/Testing_Mutants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to Run the Codes

Prerequisites

  • To install MutPy (for Mutation testing in Python) you need to run:

    pip install mutpy
  • Use this link to install Maven (for Mutation testing in Java)

MutPy (Python)

  1. Navigate to the Code/Python (MutPy)/Unit directory (MutPy only supports unit testing not integration for integration testing we have manually created mutations).

  2. Run the following command in the terminal:

    mut.py --target numAnalysis --unit-test tester -m --runner pytest --report-html Output/
  3. View the mutation testing results in the corresponding folder by just opening index.html.

PIT (Java)

  1. Create project using

    mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
    cd my-app
  2. Navigate to the Code/Java (PIT)/ directory choose either Unit or Integration and copy pom.xml, App.java and AppTest.java.

  3. To run the test cases, use:

    mvn package
  4. Run the following command for mutation testing:

    mvn test-compile org.pitest:pitest-maven:mutationCoverage
  5. View the mutation testing results in target/pit-reports/index.html.

About

Mutation Testing on Various types of Numbers using PIT and MutPy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages