se2p / pynguin

The PYthoN General UnIt Test geNerator is a test-generation tool for Python
https://www.pynguin.eu
MIT License
1.24k stars 75 forks source link

Adds minimum-coverage option #45

Closed Kucki2018 closed 1 year ago

Kucki2018 commented 1 year ago

Users can now decide from the command line (CLI) whether to stop the program after a minimum coverage has been reached and the coverage has remained the same over multiple iterations.

2 new arguments: --minimum-coverage-quick=1.0 --minimum-iteration-quick=10

Kucki2018 commented 1 year ago

All done now. No more duplicate code.

Kucki2018 commented 1 year ago

I have processed/fixed all of your comments. I'm not sure how unit tests work here in Pynguin. I added a new file "tests/ga/stoppingconditions/test_minimumcoveragestoppingcondition.py".

I also tested the stop condition extensively myself.