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

Fix input completion tests on Qt6 & run tests on 22.04 #4774

Merged
merged 5 commits into from
Aug 27, 2023

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 20, 2023

Description

  • Tests: Fix InputCompletion tests in Qt6

This is achieved by not checking exact order for certain completion tests

  • GitHub actions now run all tests in Ubuntu 22.04 - this is done to be able to use more modern features in tests
    We will still support Ubuntu 20.04 in the actual main project

  • Update dockerfiles to match this new reality

This is achieved by not checking exact order for certain completion tests
This allows us to be a bit more loose and use more C++20 features in
tests
@pajlada pajlada added this to the Post 2.4.5 milestone Aug 20, 2023
@pajlada pajlada self-assigned this Aug 20, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@@ -224,6 +226,25 @@ class InputCompletionTest : public ::testing::Test
}
};

void containsRoughly(std::span<detail::CompletionEmote> span,
std::set<QString> values)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: the parameter 'values' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]

Suggested change
std::set<QString> values)
const std::set<QString>& values)

@pajlada pajlada changed the title Fix input completion tests on Qt6 Fix input completion tests on Qt6 & run tests on 22.04 Aug 27, 2023
@pajlada pajlada enabled auto-merge (squash) August 27, 2023 10:35
@pajlada pajlada merged commit ac6708b into master Aug 27, 2023
@pajlada pajlada deleted the fix/input-completion-test-qt6 branch August 27, 2023 11:12
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.

1 participant