Skip to content

nh: mock tests, VM tests and other testing infra #258

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

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Conversation

NotAShelf
Copy link
Collaborator

@NotAShelf NotAShelf commented Apr 26, 2025

Quite a large change that spiraled out of control a little as I wanted to do more and more. Initially this change was to move nh checks into a separate module, and remove unused functions from utils. Though, on the theme of "checks", I also decided to add some tests etc. Now it's a 2k diff that Viper will not review :trollface:

Adds a bunch of tests, VM tests, etc. Closes #237

Complete testing infrastructure to make sure we never break user interface by accident, and that everything continues to work as intended on every change. Quite a large change, but does not affect the users in any way.

@NotAShelf NotAShelf changed the title nh: move checks to a dedicated module; validate nix setup nh: dediced environment checks; implement fully testing framework May 4, 2025
@NotAShelf NotAShelf changed the title nh: dediced environment checks; implement fully testing framework nh: dediced environment checks; implement full testing framework May 4, 2025
@NotAShelf NotAShelf changed the title nh: dediced environment checks; implement full testing framework nh: mock tests, VM tests and other testing infra May 8, 2025
@NotAShelf NotAShelf marked this pull request as draft May 8, 2025 06:23
@Eveeifyeve
Copy link

Oh I was going to do this part of basic testing then this pr happened.... Well I can still help you what tests are left to do?

@NotAShelf
Copy link
Collaborator Author

What's left to do now is to rebase on my other PR, and add new unit tests. It'd be nice to finish NixOS VM tests, but I'm handling that in a separate PR.

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.

nh <cmd> repl does not work
3 participants