Skip to content

kaist-webeng/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

Continuous Integration with GitHub Action

Use the configuration provided in ci.yml as a starter for your GitHub Action. Further reading on setting up git and the rest: https://www.notion.so/gurkhaman/Github-Quickstart-202549021b4880b1a960e662916332df

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