8000 Make overrding tests work in built tests by Mab879 · Pull Request #13330 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make overrding tests work in built tests #13330

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

Merged
merged 2 commits into from
Apr 16, 2025

Conversation

Mab879
Copy link
Member
@Mab879 Mab879 commented Apr 15, 2025

Description:

Make overriding templated tests work for built tests by making the templated tests be built first. This allow the local tests to override the template tests.

Rationale:

Make the built tests work as expected.

Review Hints:

Build the tests (export ADDITIONAL_CMAKE_OPTIONS="-DSSG_BUILT_TESTS_ENABLED:BOOL=ON" ) on master and this branch. See that overridden test scenario, the rule dconf_gnome_lock_screen_on_smartcard_removal has one, now work correctly.

@Mab879 Mab879 added the Infrastructure Our content build system label Apr 15, 2025
@Mab879 Mab879 added this to the 0.1.77 milestone Apr 15, 2025
Copy link
codeclimate bot commented Apr 15, 2025

Code Climate has analyzed commit f66d2cb and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 61.9% (0.0% change).

View more on Code Climate.

@vojtapolasek vojtapolasek self-assigned this Apr 15, 2025
Copy link
Collaborator
@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Looks great, it fixes the problem where rule-specific tests which had the same name as templated tests (on purpose) were not built.

@vojtapolasek vojtapolasek merged commit 4ac7359 into ComplianceAsCode:master Apr 16, 2025
107 of 109 checks passed
@Mab879 Mab879 deleted the make_overrides_work branch April 16, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0