Skip to content

Software testing hands-on for basic unit testing, test generation, and GitHub actions.

Notifications You must be signed in to change notification settings

JINMO-PARK/software-testing-exercise

 
 

Repository files navigation

Software testing hands-on for CS350

Unit Testing with PyTest

Use pytest to test using your test file.

pytest test_car.py

Coverage

Use coverage to find your test coverage metrics.

coverage run –-branch –m pytest test_car.py
coverage report

Test Generation with Pynguin

Pynguin looks for your code in the current directory and writes out the generated test file in pynguin-tests dir. We will use pynguin version 0.40.0.

pynguin \
    --project-path ./ \
    --output-path pynguin-tests \
    --module-name car
    -v

About

Software testing hands-on for basic unit testing, test generation, and GitHub actions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%