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

Refactor tests to use an event style and fix some found bugs #70

Merged
merged 188 commits into from
Sep 16, 2023

Conversation

TrentHouliston
Copy link
Member

Currently, the tests are very haphazard, and they also have REQUIRE etc statements within the reactions themselves. Catch2 isn't designed to be used in a multithreaded environment like this.

This changes the tests to instead log events that happen and then at the end check that the correct events happened in order.

Bidski
Bidski previously approved these changes Jul 31, 2023
Copy link
Contributor

@Bidski Bidski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far

@Fastcode Fastcode deleted a comment from sonarqubecloud bot Sep 10, 2023
@TrentHouliston TrentHouliston marked this pull request as ready for review September 15, 2023 14:16
@TrentHouliston TrentHouliston changed the title Refactor tests to use an event style Refactor tests to use an event style and fix some found bugs Sep 16, 2023
@TrentHouliston TrentHouliston merged commit 0b78e29 into main Sep 16, 2023
13 of 14 checks passed
@TrentHouliston TrentHouliston deleted the houliston/testrefactor branch September 16, 2023 06:58
src/extension/IOController_Posix.hpp Show resolved Hide resolved
src/extension/IOController_Windows.hpp Show resolved Hide resolved
src/util/platform.hpp Show resolved Hide resolved
tests/dsl/TCP.cpp Show resolved Hide resolved
tests/dsl/TCP.cpp Show resolved Hide resolved
tests/test_util/has_ipv6.hpp Show resolved Hide resolved
TrentHouliston added a commit that referenced this pull request Sep 22, 2023
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