Skip to content

All 20 tests pass + CI#32

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

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

Conversation

@NickEngmann
Copy link
Owner

Summary

All 20 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     | 220 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 364 insertions(+), 1 deletion(-)

Test Results

Metric Value
Passed 20
Failed 0
Total 20
Pass Rate 100%
Full test output
 -- /usr/local/bin/python3
cachedir: .pytest_cache
rootdir: /workspace/repo
collecting ... collected 20 items

tests/test_inplants.py::TestMoistureSensorAlgorithms::test_dry_sensor_reading PASSED [  5%]
tests/test_inplants.py::TestMoistureSensorAlgorithms::test_wet_sensor_reading PASSED [ 10%]
tests/test_inplants.py::TestMoistureSensorAlgorithms::test_mid_range_moisture PASSED [ 15%]
tests/test_inplants.py::TestMoistureSensorAlgorithms::test_over_wet_clamped_to_100 PASSED [ 20%]
tests/test_inplants.py::TestMoistureSensorAlgorithms::test_over_dry_clamped_to_0 PASSED [ 25%]
tests/test_inplants.py::TestMoistureSensorAlgorithms::test_analog_to_voltage_conversion PASSED [ 30%]
tests/test_inplants.py::TestSensorDataProcessing::test_moisture_percentage_calculation_various_values PASSED [ 35%]
tests/test_inplants.py::TestSensorDataProcessing::test_sensor_reading_range PASSED [ 40%]
tests/test_inplants.py::TestArduinoHelpers::test_map_function_edge_cases PASSED [ 45%]
tests/test_inplants.py::TestArduinoHelpers::test_constrain_function_edge_cases PASSED [ 50%]
tests/test_inplants.py::TestArduinoHelpers::test_analog_voltage_full_range PASSED [ 55%]
tests/test_inplants.py::TestGPIOControl::test_gpio_output_high PASSED    [ 60%]
tests/test_inplants.py::TestGPIOControl::test_gpio_output_low PASSED     [ 65%]
tests/test_inplants.py::TestTimingAndDelays::test_publish_interval PASSED [ 70%]
tests/test_inplants.py::TestTimingAndDelays::test_sensor_reading_frequency PASSED [ 75%]
tests/test_inplants.py::TestParticlePublishing::test_event_name_format PASSED [ 80%]
tests/test_inplants.py::TestParticlePublishing::test_sensor_pin_configuration PASSED [ 85%]
tests/test_inplants.py::TestSensorCalibration::test_dry_calibration_value PASSED [ 90%]
tests/test_inplants.py::TestSensorCalibration::test_wet_calibration_value PASSED [ 95%]
tests/test_inplants.py::TestSensorCalibration::test_sensor_range PASSED  [100%]

============================== 20 passed in 0.02s ==============================

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 closed this Mar 4, 2026
@NickEngmann NickEngmann deleted the lotus/tests-in-plants branch March 4, 2026 21:02
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