-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Possible bug in twister gtest harness #72318
Comments
Hi @GeekOffTheStreet! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
Thank you, I'll take a look this week. |
I am also experiencing a similar issue with twister. In my case I want to integrate CPPUTest so I had a look at the Gtest Harness. This brought me to this issue. As far as I understand the problem is that each test case name obtained dynamically from the std output of the Harness (Gtest in this case), is created by the format
I think that is the reason we get from harness handle from Gtest a created instance with name What happen is the following:
Possible solutionChange the Pass pattern (and similarly the fail pattern as well) to something as
|
Discussed in #71635
Originally posted by GeekOffTheStreet April 17, 2024
I tried using Twister with the gtest harness and ran into issues with it detecting unit test execution. The behavior for how it parses sample.yaml/testcase.yaml doesn't match what I would expect. I should not that I'm not using pigweed. Consider this simple test case:
I build that for qemu using:
If I use the console harness with a sample.yaml resembling:
The test works as expected (sample output):
If I try to use the gtest harness:
The runner tries to match
HelloWorld.foo.HelloWorld.foo
instead of justHelloWorld.foo
and fails:I didn't see an obvious way to alter the matching behavior.
@yperess
The text was updated successfully, but these errors were encountered: