cosmic_ray.tools package¶
Subpackages¶
Submodules¶
cosmic_ray.tools.badge module¶
Tool for creating badge.
cosmic_ray.tools.html module¶
A tool for generating HTML reports.
- cosmic_ray.tools.html.pycharm_url(filename, line_number)¶
Get a URL for opening a file in Pycharm.
cosmic_ray.tools.http_workers module¶
A tool for launching HTTP workers and executing a session using them.
This reads the ‘distributor.http.worker-urls’ field of a config to see where workers are expected to be running. For each worker, it makes a clone of the git repository that’s going to be tested, optionally changing to a directory under the root of the clone before starting the worker. It then starts the workers with the correct options to provide the configured URLs.
- async cosmic_ray.tools.http_workers.run(config_file, repo_url, location)¶
Start the configured workers in their own git clones.
- Parameters:
config_file – The Cosmic Ray configuration file describing the distributor URLs.
repo_url – The git repository to clone for each worker.
location – The relative path into the cloned repository to use as the cwd for each worker.
cosmic_ray.tools.report module¶
Tool for printing reports on mutation testing sessions.
- cosmic_ray.tools.report.display_work_item(work_item)¶
cosmic_ray.tools.survival_rate module¶
Tool for printing the survival rate in a session.
- cosmic_ray.tools.survival_rate.kills_count(work_db)¶
Return the number of killed mutants.
- cosmic_ray.tools.survival_rate.survival_rate(work_db)¶
Calculate the survival rate for the results in a WorkDB.
cosmic_ray.tools.xml module¶
A tool for creating XML reports.