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

Various test cleanups #104

Merged
merged 6 commits into from
May 19, 2024
Merged

Various test cleanups #104

merged 6 commits into from
May 19, 2024

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented May 19, 2024

No description provided.

Previously we were running every test ten times but there is no point
to it when we do not actually use proptest generators.
This removes slowish Template Haskell step and is actually more concise
since we no longer need to re-export the tests with `prop_` prefix.

Also rename the test functions:

- remove dconf2nix prefix
- negative → numbers (this was forgotten in fb34a46)
- dconf → dump
Instead of using fixed functions.
This will allow us to easily add NixOS variants of the tests.
Lighen up the top-level directory a bit.
They were added in 65625df
but never actually registered by the test bench.

Also rename them from `quotes` to `strings`.
But keep it commented out.

This is useful when adding new tests.

Also move reading output just before it is compared so that it does
not fail before we can write the result.
@jtojnar jtojnar merged commit 7663fff into master May 19, 2024
1 check passed
@jtojnar jtojnar deleted the test-cleanup branch May 19, 2024 19:31
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