-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Running unit testing with no tests should output a warning if the build fails #4278
Comments
The "FULLY BACKWARD COMPATIBLE" notice should be amended too, because it's not... |
Thanks for the report. Please re-test with Does it work now? |
No, the test build proceeds despite there being no tests so it fails and doesn't get a chance to display that message:
|
Sorry, should be finally fixed. Please re-test with |
It works now:
|
Thanks for the reports and help with testing! The final release of PlatformIO Core 6.0.2 is planned for Monday/Tuesday |
Configuration
Operating system: Ubuntu 18.04
PlatformIO Version (
platformio --version
): 6.0.1Description of problem
With 6.0.0 all test directories must now begin with
test_
(#4135) but there's no warning when PlatformIO tries to build the test application without any test code. Tests fail to build with no explanation of why.There's also no way to view the older documentation (for 5.x) on https://docs.platformio.org/en/latest/advanced/unit-testing/structure.html.
Steps to Reproduce
test
directory that doesn't contain anytest_
directories.platformio test
Actual Results
Failure to build because of undefined references to
main()
,setup()
,loop()
or other functions used by the project under test that don't exist because there is no test code.Expected Results
Failure to build with an explanatory warning message that the project appears to have no tests (other than the
*
test) and link to the new documentation.The text was updated successfully, but these errors were encountered: