mmurdoch / arduinounit

ArduinoUnit is a unit testing framework for Arduino libraries
MIT License
394 stars 51 forks source link

V3.0.2: serial message for each test is "skipped" #86

Closed ttttttom closed 5 years ago

ttttttom commented 5 years ago

I tested arduinounit version 2.2.0: Messages are ok.

Same program with arduinounit version 3.0.2: Messages always say test skipped for each test. Test-summary is correct though.

wmacevoy commented 5 years ago

can you post hardware versions software versions, code, and output?

ttttttom commented 5 years ago

Software:

Hardware:

For the example sketch "basic.ino" the output is:

Test correct skipped. Assertion failed: (x=1) != (1=1), file basic.ino, line 13. Test incorrect skipped. Test summary: 1 passed, 1 failed, and 0 skipped, out of 2 test(s).

`#line 2 "basic.ino"

include

test(correct) { int x=1; assertEqual(x,1); }

test(incorrect) { int x=1; assertNotEqual(x,1); }

void setup() { Serial.begin(9600); while(!Serial) {} // Portability for Leonardo/Micro }

void loop() { Test::run(); }`

wmacevoy commented 5 years ago

I cannot reproduce this. I built on a Mega 2560 & Uno R3 on Arduino 1.8.5 (OS X) and got the expected output:

Test correct passed.
Assertion failed: (x=1) != (1=1), file basic.ino, line 12.
Test incorrect failed.
Test summary: 1 passed, 1 failed, and 0 skipped, out of 2 test(s).

Could you try reinstalling the library, trying another board, and/or reinstalling the arduino IDE? It's pretty surprising that your result is so different, but I don't know how to help.

ttttttom commented 5 years ago

I think I can give you a hint now. Please check your "Arduino AVR Boards" Version in the board manager. On my system (Windows with Arduino 1.8.1, Nano old boot loader & UnoR3):

I hope this will help you...

ttttttom commented 5 years ago

Checked it also on Linux and OSX with Arduino 1.8.8 and 1.8.5. Always the same result ...

wmacevoy commented 5 years ago

Ok found a hint: https://github.com/arduino/ArduinoCore-avr/issues/7

1.6.21 was the last version created from the IDE repo, and also the last one to require gcc-4.9.2-atmel3.5.4-arduino2 (I think this last information might be the one you need most)