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

Unit Testing - Linter Error - unity.h does not exist #947

Closed
brharper opened this issue Apr 25, 2017 · 0 comments
Closed

Unit Testing - Linter Error - unity.h does not exist #947

brharper opened this issue Apr 25, 2017 · 0 comments
Labels
Milestone

Comments

@brharper
Copy link

Hi All,

Came across what the PIO Plus support rep found to be a bug in the unit testing library.


Configuration

Windows 10 64 Bit:

PlatformIO, version 3.4.0a6

Board - teensy32

Description of problem

When implementing the unit testing blink demo code
linter(via gcc) gives the error "unity.h: No such file or directory" at the #include directive. The code compiles and runs fine.

#include <unity.h>

Steps to Reproduce

  1. Create new project
  2. Add the blink unit test demo main.cpp and test_main.cpp to the /src and /test directories respectively
  3. Save and rebuild project index if need be

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:teensy32]
platform = teensy
board = teensy31
framework = arduino```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants