Skip to content

All 21 tests pass + CI#8

Closed
NickEngmann wants to merge 1 commit intomasterfrom
lotus/tests-in-plants
Closed

All 21 tests pass + CI#8
NickEngmann wants to merge 1 commit intomasterfrom
lotus/tests-in-plants

Conversation

@NickEngmann
Copy link
Owner

Summary

All 21 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py
  • /workspace/repo/tests/test_example.py

Diff Stats

.github/workflows/test.yml |  29 ++++++++
 .gitignore                 |  15 +++-
 tests/conftest.py          |  45 ++++++++++++
 tests/test_example.py      | 107 ++++++++++++++++++++++++++++
 tests/test_inplants.py     | 169 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 364 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 21
Failed 0
Total 21
Pass Rate 100%
Full test output
================ test session starts ==============================
platform linux -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0 -- /usr/local/bin/python3
cachedir: .pytest_cache
rootdir: /workspace/repo
collecting ... collected 21 items

tests/test_example.py::test_arduino_map PASSED                           [  4%]
tests/test_example.py::test_arduino_constrain PASSED                     [  9%]
tests/test_example.py::test_analog_voltage_conversion PASSED             [ 14%]
tests/test_example.py::test_serial_protocol_example PASSED               [ 19%]
tests/test_inplants.py::test_moisture_percentage_empty_sensor PASSED     [ 23%]
tests/test_inplants.py::test_moisture_percentage_full_sensor PASSED      [ 28%]
tests/test_inplants.py::test_moisture_percentage_mid_range PASSED        [ 33%]
tests/test_inplants.py::test_moisture_percentage_realistic_dry PASSED    [ 38%]
tests/test_inplants.py::test_moisture_percentage_realistic_wet PASSED    [ 42%]
tests/test_inplants.py::test_battery_voltage_zero PASSED                 [ 47%]
tests/test_inplants.py::test_battery_voltage_full PASSED                 [ 52%]
tests/test_inplants.py::test_battery_voltage_mid_range PASSED            [ 57%]
tests/test_inplants.py::test_moisture_percentage_clamped PASSED          [ 61%]
tests/test_inplants.py::test_battery_voltage_clamped PASSED              [ 66%]
tests/test_inplants.py::test_delay_logic_with_high_battery PASSED        [ 71%]
tests/test_inplants.py::test_delay_logic_with_low_battery PASSED         [ 76%]
tests/test_inplants.py::test_serial_data_format PASSED                   [ 80%]
tests/test_inplants.py::test_led_blink_logic PASSED                      [ 85%]
tests/test_inplants.py::test_sensor_reading_range PASSED                 [ 90%]
tests/test_inplants.py::test_percentage_conversion_round_trip PASSED     [ 95%]
tests/test_inplants.py::test_multiple_moisture_readings PASSED           [100%]

============================== 21 passed in 0.03s ==============================

Phase

test — part of Marisol's autonomous coding pipeline


Generated by Marisol's autonomous coding engine

CI/CD

  • GitHub Actions workflow added (.github/workflows/test.yml)

@NickEngmann NickEngmann deleted the lotus/tests-in-plants branch February 26, 2026 10:18
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