This is reproducable for me too with the simplest possible Arduino Uno + Unity test example.
[env:uno]
platform = atmelavr
board = uno
framework = arduino
test\test_simple\test.cpp
#include <unity.h>
void test_calculator_addition(void) {
TEST_ASSERT_EQUAL(32, 25 + 7);
}
void RUN_UNITY_TESTS() {
UNITY_BEGIN();
RUN_TEST(test_calculator_addition);
UNITY_END();
}
#ifdef ARDUINO
#include <Arduino.h>
void setup() {
// NOTE!!! Wait for >2 secs
// if board doesn't support software reset via Serial.DTR/RTS
delay(2000);
RUN_UNITY_TESTS();
}
void loop() {
digitalWrite(13, HIGH);
delay(100);
digitalWrite(13, LOW);
delay(500);
}
#endif
Output of project task “Verbose Test”
* Executing task: C:\Users\Max\AppData\Local\Programs\Python\Python38\Scripts\platformio.exe test --verbose --environment uno
Collected 1 tests (test_simple)
Processing test_simple in uno environment
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Building & Uploading...
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file ".pio\build\uno\firmware.hex"
avrdude: writing flash (3446 bytes):
Writing | ################################################## | 100% 0.55s
avrdude: 3446 bytes of flash written
avrdude: verifying flash memory against .pio\build\uno\firmware.hex:
avrdude: load data flash data from input file .pio\build\uno\firmware.hex:
avrdude: input file .pio\build\uno\firmware.hex contains 3446 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.44s
avrdude: verifying ...
avrdude: 3446 bytes of flash verified
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done. Thank you.
Testing...
If you don't see any output for the first 10 secs, please reset board (press reset button)
'UnityTestRunner' object has no attribute 'verbose'
--------------------------------------------------------------------------------------- uno:test_simple [ERRORED] Took 5.84 seconds ---------------------------------------------------------------------------------------
============================== SUMMARY ==============================
Environment Test Status Duration
------------- ----------- -------- ------------
uno test_simple ERRORED 00:00:05.839
============= 1 test cases: 0 succeeded in 00:00:05.839 =============
CC @ivankravets