You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlatformIO Core.
If you’ve found a bug, please provide an information below.
Configuration
Operating system: WIn10
PlatformIO Version (platformio --version): 6.1.9
Description of problem
When following the Unit testing tutorial here: https://piolabs.com/blog/insights/unit-testing-part-1.html
I ran into the problem, that setUp and tearDown are not called when not calling them in the main function. My understanding from the tutorial was, that this should not be the case but these functions should be called automatically before and after each RUN_TEST.
I asked in the community forum and was send here by ivankravets of the PlatformIO Team.
Hi @Speidey ! How did you test that the setUp and tearDown functions are not called? I just tried a basic example with printf and it seems to work just fine:
If you’ve found a bug, please provide an information below.
Configuration
Operating system: WIn10
PlatformIO Version (
platformio --version
): 6.1.9Description of problem
When following the Unit testing tutorial here: https://piolabs.com/blog/insights/unit-testing-part-1.html
I ran into the problem, that setUp and tearDown are not called when not calling them in the main function. My understanding from the tutorial was, that this should not be the case but these functions should be called automatically before and after each RUN_TEST.
I asked in the community forum and was send here by ivankravets of the PlatformIO Team.
Steps to Reproduce
Actual Results
failed test
Expected Results
succesfull testing
The text was updated successfully, but these errors were encountered: