Skip to content

WithSecureOpenSource/pytest-rts

Repository files navigation

Coverage-based regression test selection (RTS) plugin for pytest

Usage

Usage as a module (no source code)

  1. Add your public key to github profile
  2. Add git+ssh://git@github.com/F-Secure/pytest-rts.git#egg=pytest-rts as a dependency to requirements.txt
  3. Install dependencies
  4. Use the tool with pytest --rts

Usage from source code

Initialization

  1. Checkout the project
  2. In project directory run make install - that will:
    • create virtual environment
    • download all the dependencies
    • install pytest-rts
  3. Switch to directory with target project
  4. Install all the dependencies needed for testing (should be installed into the same pytest-rts virtual environment)
  5. Execute pytest --rts which will run the entire test suite and build a mapping database

Running tests related to the changes

  1. execute pytest --rts after doing changes

Running evaluation code

  1. execute pytest_rts_eval in target project directory

Development

See DEVELOPER.md for more info

Contributing

Contributing Guidelines

Read through our contributing guidelines to learn about our submission process, coding rules and more.

Code of Conduct

Help us keep the project open and inclusive. Please read and follow our Code of Conduct.

About

Coverage-based regression test selection (RTS) plugin for pytest

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •