Giter Site home page Giter Site logo

testprioritization's Introduction

"# TestPrioritization on Class Level" Steps by steps how to use the tool. Sample run on project common-dbutils:

  1. Download the project common-dbutils: https://drive.google.com/file/d/0B2CUmN6iobxCNG5qcWZPSmV0NkU/view?usp=sharing Download and unzip the TestPrioritization Run mvn install to create a jar file. Record the location to the jar file
  2. Create a pomTest.xml file. Add the following lines to the Surefire plugin section:
-javaagent:"Your-own-location-of-jar-file/code-coverage-1.0-SNAPSHOT.jar" listener edu.utdallas.JUnitExecutionListener And to dependencies section: edu.utdallas code-coverage 1.0-SNAPSHOT test
  1. Create pomBug.xml file. Same as pomTest.xml but delete the ArgLine section

  2. Create some random bugs. Here, we modified org.apache.commons.dbutils.BeanProcessor on line 59 protected static final int PROPERTY_NOT_FOUND = -1; to protected static final int PROPERTY_NOT_FOUND = 1;

  3. mvn test -f pomBug.xml To run the test in default order with recorded time for bug

  4. Fix the bug. Then run: mvn test -f pomTest.xml To collect the coverage statements of tests and rank them based on total and additional strategies

  5. Re-create the bug

  6. mvn -Dtest=TestTotal test -f pomBug.xml To run the test set in order sorted by Total strategy, and record time to discover bugs

  7. mvn -Dtest=TestAdditional test -f pomBug.xml To run the test set in order sorted by Total strategy, and record time to discover bugs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.