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

library.json 'exclude' option is not used when building libraries in 'lib/' #437

Closed
sarfata opened this issue Jan 5, 2016 · 3 comments
Closed
Assignees

Comments

@sarfata
Copy link

sarfata commented Jan 5, 2016

I have a library in 'lib/' and have added some unit tests to it but there does not seem to be a way to exclude them from the build.

The exclude option in a library.json is not used (I don't even see if that file is parsed for local libraries in the source) and the src_filter option is not applied to libraries.

Is there another solution I missed?

@ivankravets ivankravets self-assigned this Jan 5, 2016
@ivankravets
Copy link
Member

The exclude option in a library.json is not used (I don't even see if that file is parsed for local libraries in the source) and the src_filter option is not applied to libraries.

See #289

Is there another solution I missed?

Sure, just place your source code to src folder in the library and keep test folder on the same level as src folder. See example with "Bar" library https://github.com/platformio/platformio/blob/develop/platformio/commands/init.py#L197:L202

@ivankravets
Copy link
Member

Please reopen issue if you have any questions.

@sarfata
Copy link
Author

sarfata commented Feb 11, 2016

This worked perfectly. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants