Skip to content

Refactor and split nix integration tests into separate files#281

Open
Noi0103 wants to merge 1 commit into
mainfrom
Noi0103/refactor-integration-tests
Open

Refactor and split nix integration tests into separate files#281
Noi0103 wants to merge 1 commit into
mainfrom
Noi0103/refactor-integration-tests

Conversation

@Noi0103

@Noi0103 Noi0103 commented Jul 20, 2026

Copy link
Copy Markdown
Member

While working towards the file descriptor cli argument, writing a new test in the existing test landscape felt harder than it should. This refactor splits the different kinds of tests and gives individual control over the declared systemd configuration parts.

@Noi0103
Noi0103 requested a review from lbeierlieb July 20, 2026 15:26

@lbeierlieb lbeierlieb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I really like the split, but the test utils should differentiate between "public API" and "internal helpers".

Comment thread nix/checks/testutils.nix Outdated
Comment thread nix/checks/default.nix
@@ -0,0 +1,48 @@
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

More usage of callPackage can make this file even cleaner, but we can leave that for a follow up.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, lets leave that for later. CallPackage adds some Attributes, so this is not a drop in replacement.

While working towards the file descriptor cli argument, writing a new
test in the existing test landscape felt harder than it should. This
refactor splits the different kinds of tests and gives individual
control over the declared systemd configuration parts.
@Noi0103
Noi0103 force-pushed the Noi0103/refactor-integration-tests branch from ce3cb4b to 0c4c264 Compare July 21, 2026 11:27
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