Skip to content
 
 

Repository files navigation

pytest-demo

This repository is a minimal, ready-to-run demonstration project for pytest.
It showcases an end-to-end workflow suitable for a live 10-minute demo (as required by the assignment).

What this demo contains

  • Assertions (including one intentionally failing test to demonstrate debugging)
  • Fixtures (setup/teardown via conftest.py)
  • Mocking external dependencies (unittest.mock)
  • CI/CD integration with GitHub Actions that runs tests and uploads an HTML report

Quick start (local)

python -m venv .venv
source .venv/bin/activate    # windows: .venv\Scripts\activate
pip install -r requirements.txt
pytest --html=report.html --self-contained-html
# then open report.html in your browser

GitHub Actions (CI)

The workflow at .github/workflows/ci.yml runs tests on push/PR to main and uploads results/report.html as an artifact.

SLIIT Assignment Announcement (paste for convenience)

📢 SEPQM Assignment – Live Demonstration Notice

Hi everyone,

Please note the Demonstration Requirements for our Testing Tool Assignment.

🔹 Each group must demonstrate the complete workflow of the selected testing tool, starting from initial setup to successful test execution.

🔹 Every group member must demonstrate at least one key feature of the tool. (So a group should cover 4 different features.)

Examples of features you can demonstrate: • Assertions • Fixtures or Setup/Teardown mechanisms • Mocking or Stubbing • Behaviour-Driven Development (BDD) syntax • Test Reporting • CI/CD usage (or any other important feature of the tool)

Time Limit: Maximum 10 minutes per group

⚠️ Important: This is a LIVE DEMONSTRATION. It is NOT a recorded video. You must show the tool working during the presentation.

Make sure to prepare your environment and code beforehand to avoid delays.

Thank you.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages