Skip to content

Fix unity_test_summary ruby script with parameterized tests#553

Closed
jannisbaudisch wants to merge 2 commits intoThrowTheSwitch:masterfrom
jannisbaudisch:fix_test_summary_with_parameterized_tests
Closed

Fix unity_test_summary ruby script with parameterized tests#553
jannisbaudisch wants to merge 2 commits intoThrowTheSwitch:masterfrom
jannisbaudisch:fix_test_summary_with_parameterized_tests

Conversation

@jannisbaudisch
Copy link

When you passed a string with a colon (":") to a test via test
parameterization, the unity_test_summary.rb script was no longer
able to handle its output.

EXAMPLE:

TEST_CASE("::1")
void test_some_parameterized_ipv6_address(const char *address)
{
	TEST_FAIL();
}

The reason for this is, that a simple split at colon command was used.
Changed this to a more complex regex.

PLEASE NOTE: I have no clue, how to write clean ruby code. I bet this
can be written much prettier. Feel free to change it, but at least the
concept is working.

Jannis Baudisch added 2 commits April 7, 2021 13:13
When you passed a string with a colon (":") to a test via test
parameterization, the unity_test_summary.rb script was no longer
able to handle its output.

EXAMPLE:
```
TEST_CASE("::1")
void test_some_parameterized_ipv6_address(const char *address)
{
	TEST_FAIL();
}
```

The reason for this is, that a simple split at colon command was used.
Changed this to a more complex regex.

PLEASE NOTE: I have no clue, how to write clean ruby code. I bet this
can be written much prettier. Feel free to change it, but at least the
concept is working.
mvandervoord added a commit that referenced this pull request Feb 6, 2023
Bump release.
@mvandervoord
Copy link
Member

Merge into PR #656

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants