Skip to content

Created comprehensive tests for the NickEngmann/in-plants Arduino project + CI#4

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

Created comprehensive tests for the NickEngmann/in-plants Arduino project + CI#4
NickEngmann wants to merge 1 commit intomasterfrom
lotus/tests-in-plants

Conversation

@NickEngmann
Copy link
Owner

Summary

Created comprehensive tests for the NickEngmann/in-plants Arduino project. Tests cover moisture sensor analog-to-percentage mapping, sensor reading workflows, button triggers, LED indicators, data pub + CI

Files Changed

  • /workspace/repo/tests/test_inplants.py

Diff Stats

.github/workflows/test.yml                         |  29 +
 .../conftest.cpython-312-pytest-9.0.2.pyc          | Bin 0 -> 2319 bytes
 tests/__pycache__/embedded_mocks.cpython-312.pyc   | Bin 0 -> 32366 bytes
 .../test_example.cpython-312-pytest-9.0.2.pyc      | Bin 0 -> 12885 bytes
 .../test_inplants.cpython-312-pytest-9.0.2.pyc     | Bin 0 -> 49221 bytes
 tests/conftest.py                                  |  45 ++
 tests/embedded_mocks.py                            | 616 +++++++++++++++++++++
 tests/test_example.py                              |  55 ++
 tests/test_inplants.py                             | 362 ++++++++++++
 9 files changed, 1107 insertions(+)

Test Results

est_example.py::test_arduino_constrain PASSED                     [  8%]
tests/test_example.py::test_analog_voltage_conversion PASSED             [ 12%]
tests/test_example.py::test_serial_protocol_example PASSED               [ 16%]
tests/test_inplants.py::test_analog_to_percentage_mapping PASSED         [ 20%]
tests/test_inplants.py::test_analog_to_percentage_with_realistic_values PASSED [ 24%]
tests/test_inplants.py::test_percentage_constrain PASSED                 [ 28%]
tests/test_inplants.py::test_analog_to_voltage_conversion PASSED         [ 32%]
tests/test_inplants.py::test_sensor_reading_logic PASSED                 [ 36%]
tests/test_inplants.py::test_multiple_sensor_readings PASSED             [ 40%]
tests/test_inplants.py::test_button_trigger_logic PASSED                 [ 44%]
tests/test_inplants.py::test_publish_data_format PASSED                  [ 48%]
tests/test_inplants.py::test_led_indicator_logic PASSED                  [ 52%]
tests/test_inplants.py::test_delay_timing PASSED                         [ 56%]
tests/test_inplants.py::test_analog_pin_selection PASSED                 [ 60%]
tests/test_inplants.py::test_sensor_calibration_range PASSED             [ 64%]
tests/test_inplants.py::test_data_publishing_interval PASSED             [ 68%]
tests/test_inplants.py::test_complete_sensor_workflow PASSED             [ 72%]
tests/test_inplants.py::test_edge_case_analog_values PASSED              [ 76%]
tests/test_inplants.py::test_percentage_to_analog_reverse PAS

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 06:43
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