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

Option to run specific Unity test function #4248

Closed
nbolton opened this issue Apr 29, 2022 · 3 comments
Closed

Option to run specific Unity test function #4248

nbolton opened this issue Apr 29, 2022 · 3 comments

Comments

@nbolton
Copy link

nbolton commented Apr 29, 2022

Related: ThrowTheSwitch/Unity#611

Within my project, I have many test functions. When one fails, finding out which one is tedious. Unity has command line support (when UNITY_USE_COMMAND_LINE_ARGS is defined) through it's -n or -f arg, but I couldn't see how to pass args to Unity via pio. The test_filter option in the .ini isn't useful in this situation, because it filters on test library, not test function.

Idea: Provide a way of filtering by Unity test function, or maybe have a way of passing args to Unity.

@nbolton
Copy link
Author

nbolton commented Apr 29, 2022

Thinking about it a bit more, I'm guessing this would need changes/improvements in the Unity library?

Also, perhaps Unity could be improved by showing a list of failed tests in the summary at the end (so you don't have to hunt for failed tests in the log). Certainly an issue to raise in Unity there.

Edit: Raised new issue in Unity: ThrowTheSwitch/Unity#611

@ivankravets ivankravets transferred this issue from platformio/platform-native Apr 29, 2022
@ivankravets ivankravets added this to the 6.0.0 milestone Apr 29, 2022
@ivankravets
Copy link
Member

Will #3132 help you to solve this issue?

@nbolton
Copy link
Author

nbolton commented Apr 29, 2022

Yes thanks, I'll close and add to that issue.

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