Skip to content

Add test suite (7 tests) + CI#8

Closed
NickEngmann wants to merge 1 commit intomasterfrom
autonomous/add-tests/c2-test-
Closed

Add test suite (7 tests) + CI#8
NickEngmann wants to merge 1 commit intomasterfrom
autonomous/add-tests/c2-test-

Conversation

@NickEngmann
Copy link
Owner

Summary

Add unit test suite (7 tests, all passing) + GitHub Actions CI, README update

Files Changed

  • tests/test_pidslm_logic.py
  • .github/workflows/test.yml
  • README.md

Diff Stats

.github/workflows/test.yml                         |  25 ++++
 README.md                                          |   7 +-
 .../conftest.cpython-314-pytest-9.0.2.pyc          | Bin 0 -> 132 bytes
 .../test_pidslm_logic.cpython-314-pytest-9.0.2.pyc | Bin 0 -> 16542 bytes
 tests/conftest.py                                  |   2 +
 tests/test_pidslm_logic.py                         | 131 +++++++++++++++++++++
 6 files changed, 164 insertions(+), 1 deletion(-)

Test Results

============================= test session starts ==============================
platform linux -- Python 3.14.3, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python3
cachedir: .pytest_cache
rootdir: /workspace/repo
plugins: mock-3.15.1, xvfb-3.1.1
collecting ... collected 7 items

tests/test_pidslm_logic.py::TestTimestamp::test_timestamp_format PASSED  [ 14%]
tests/test_pidslm_logic.py::TestTimestamp::test_timestamp_changes_over_time PASSED [ 28%]
tests/test_pidslm_logic.py::TestShowBusy::test_show_busy_prints_message PASSED [ 42%]
tests/test_pidslm_logic.py::TestHideBusy::test_hide_busy_prints_message PASSED [ 57%]
tests/test_pidslm_logic.py::TestClear::test_clear_calls_show_and_hide_busy PASSED [ 71%]
tests/test_pidslm_logic.py::TestClear::test_clear_records_os_system_call PASSED [ 85%]
tests/test_pidslm_logic.py::TestClear::test_clear_sequence_is_correct PASSED [100%]

============================== 7 passed in 0.12s ===============================

Phase

test — part of Marisol's autonomous coding pipeline


Generated by Marisol's autonomous coding engine

How to run

# Without Docker
pytest

# In Docker (if Dockerfile exists)
docker run --rm piDSLM pytest

Coverage

  • Test functions: 7
  • Status: all passing
  • Modules covered: tests/test_pidslm_logic.py

CI/CD

  • GitHub Actions workflow added (.github/workflows/test.yml)
  • CI will run on all future PRs and pushes to main/master
  • Badge: Tests

7 test functions, GitHub Actions CI, README updates.
@NickEngmann NickEngmann deleted the autonomous/add-tests/c2-test- branch February 22, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant