Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ttttttom opened this issue Dec 4, 2018 · 6 comments
Closed

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

ttttttom opened this issue Dec 4, 2018 · 6 comments

Comments

@ttttttom
Copy link

ttttttom commented Dec 4, 2018

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
Copy link
Collaborator

wmacevoy commented Dec 5, 2018

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

@ttttttom
Copy link
Author

ttttttom commented Dec 5, 2018

Software:

  • Arduino IDE V1.8.5
  • ArduinoUnit V3.0.2

Hardware:

  • BN: Arduino/Genuino Uno
  • VID: 2341
  • PID: 0043
  • SN: 55437333637351208071

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 <ArduinoUnit.h>
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
Copy link
Collaborator

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
Copy link
Author

ttttttom commented Jan 5, 2019

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):

  • Using Arduino AVR Boards V1.6.23 with Arduino Unit 3.0.2 -> wrong unit test output
  • Using Arduino AVR Boards V1.6.22 with Arduino Unit 3.0.2 -> wrong unit test output
  • Using Arduino AVR Boards V1.6.21 with Arduino Unit 3.0.2 -> correct unit test output
    and
  • Using Arduino AVR Boards V1.6.23 with Arduino Unit 2.2.0 -> correct unit test output

I hope this will help you...

@ttttttom
Copy link
Author

ttttttom commented Jan 5, 2019

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

@wmacevoy
Copy link
Collaborator

Ok found a hint: arduino/ArduinoCore-avr#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)

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

No branches or pull requests

2 participants