Skip to content

All 16 tests pass + CI#28

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 16 tests pass + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py

Diff Stats

.github/workflows/test.yml |  30 ++++++
 .gitignore                 |  15 ++-
 tests/conftest.py          |  45 ++++++++
 tests/test_example.py      |  55 ++++++++++
 tests/test_inplants.py     | 254 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 398 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 16
Failed 0
Total 16
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/python
cachedir: .pytest_cache
rootdir: /workspace/repo
collecting ... collected 16 items

tests/test_inplants.py::test_moisture_percentage_wet_sensor PASSED       [  6%]
tests/test_inplants.py::test_moisture_percentage_dry_sensor PASSED       [ 12%]
tests/test_inplants.py::test_moisture_percentage_mid_range PASSED        [ 18%]
tests/test_inplants.py::test_moisture_percentage_constrained_low PASSED  [ 25%]
tests/test_inplants.py::test_moisture_percentage_constrained_high PASSED [ 31%]
tests/test_inplants.py::test_moisture_percentage_custom_calibration PASSED [ 37%]
tests/test_inplants.py::test_analog_to_voltage_conversion PASSED         [ 43%]
tests/test_inplants.py::test_serial_command_parsing PASSED               [ 50%]
tests/test_inplants.py::test_particle_publish_moisture_analog PASSED     [ 56%]
tests/test_inplants.py::test_particle_publish_moisture_percentage PASSED [ 62%]
tests/test_inplants.py::test_sensor_reading_workflow PASSED              [ 68%]
tests/test_inplants.py::test_led_control_logic PASSED                    [ 75%]
tests/test_inplants.py::test_delay_timing PASSED                         [ 81%]
tests/test_inplants.py::test_multiple_sensor_readings PASSED             [ 87%]
tests/test_inplants.py::test_map_function_edge_cases PASSED              [ 93%]
tests/test_inplants.py::test_sensor_calibration_range PASSED             [100%]

============================== 16 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 28, 2026 08:49
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