FabioBatSilva / ArduinoFake

Arduino mocking made easy
https://platformio.org/lib/show/1689/ArduinoFake
MIT License
105 stars 48 forks source link

Unable to start test and view log #61

Closed ShettyHarapanahalli closed 3 months ago

ShettyHarapanahalli commented 3 months ago

I am new to Arduino and trying to mock the application with this library. When I execute the test cases, I get the below message; when I try to check the JSON, it does not exist. Can you please suggest a way forward.

------------ pcSimulation:test_radiaion [ERRORED] Took 3.07 seconds ------------ =================================== SUMMARY =================================== Environment Test Status Duration


pcSimulation test_radiaion ERRORED 00:00:03.067 ================== 1 test cases: 0 succeeded in 00:00:03.067 ================== -> Verbosity level can be increased via -v, -vv, or -vvv option Collected 1 tests

Processing test_radiaion in pcSimulation environment

Building...

Saved JSON report to the C:\Users\10364462.platformio.cache\tmp\test-list-72429.json

FabioBatSilva commented 3 months ago

Try increasing the log level.

pio test -vvv

ShettyHarapanahalli commented 3 months ago

Yes, I call the test with "pio test -vvv", and the error is the same.

I tried to run the example "WIRING-BLINK", I get the error - .pio\libdeps\native\Unity\src\unity_internals.h:11:10: fatal error: unity_config.h: No such file or directory

have no luck with the file from - https://github.com/ThrowTheSwitch/Unity/blob/master/examples/unity_config.h Need to customize it to the native.

Just wondering if mocking is supported as PIO shares that Unity does not support mocking- image