Skip to content

Mondego/TLDR

Repository files navigation

TLDR : Too Long, Didn't Regress.

Build Status

TLRD is an opensource Regression Test Selection (RTS) tool with minimal selection overhead. It is a maven plugin that selects minimum number of test cases and yet maintains safety during incremental development. This plugin works for Maven projects written in Java. This plugin can be run in tandem with JUnit 4.11 and Surefire 2.17.3.

Running TLDR

To run TLDR with a project, follow these steps:

  • Clone TLDR repository.

  • cd to TLDR repository and type mvn install in the terminal. This will compile and install TLDR in your local maven repository.

  • Install Redis in your machine. For mac --

brew update
brew install redis
  • Run the redis server using the following command in the terminal --

redis-server

  • Add this xml code in the plugins section of the pom.xml file of the project on which you want to use TLDR -
<plugin>
    <groupId>com.mondego.ics.uci</groupId>
    <artifactId>tldr-plugin</artifactId>
    <version>1.0.2-SNAPSHOT</version>
</plugin>
  • Type the following maven command to run tests with TLDR -
mvn tldr:tldr

If the project has used rat or checkStyle plugin turn them off -

 mvn tldr:tldr -Dmaven.test.failure.ignore=true -Drat.skip=true -Dcheckstyle.skip=true
  • Some optional flags -
    commit.hash -- Hash code of a particular commit. This can be used to log TLDR result for a particular commit.
    commit.serial -- Serial number of a commit. This is used then the tool is being evaluated on a series of commit one by one.
    parallel.retest.all -- Setting it to true will turn off TLDR and perform retest-all parallelly.
    log.directory -- The directory where the logs will be written. If this flag is not used then by default log is written to the home directory.
    debug.flag -- Setting it to true will turn off debug logs. multimodule.projectname -- Name of a multi-module is passed by this flag.

Contributing to TLDR

The project is currently under active construction. Details will follow as we continue to build it. We aren't welcoming contribution just yet.

If you have any question, suggestions, or concerns about the tool feel free to email mzaber at uci dot edu

About

A fast and efficient Regression Testing tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published