NixOS VM tests: Difference between revisions

654 (talk | contribs)
learned this @ nixcon25 (https://github.com/applicative-systems/nixos-test-driver-nixcon)
Mightyiam (talk | contribs)
Links to Nixcademy blog posts about NixOS integration tests
 
(One intermediate revision by one other user not shown)
Line 27: Line 27:
Now you can connect to this VM via (on linux):  
Now you can connect to this VM via (on linux):  
  ssh -o User=root vsock/3
  ssh -o User=root vsock/3
If you are on MacOS or have multiple VMs look at the shell output that do run the interactive tests.
If you are on MacOS or have multiple VMs look at the shell output that do run the interactive tests:
[[File:Screenshot of interactive test just started.png|none|thumb|444x444px|Screenshot of just started nixos test for meilisearch (interactive)]]


== How to debug tests ? ==
== How to debug tests ? ==
Line 387: Line 388:
   /nix/store/bx7z3imvxxpwkkza10vb23czhw7873w2-vm-test-run-unnamed
   /nix/store/bx7z3imvxxpwkkza10vb23czhw7873w2-vm-test-run-unnamed


== Further reading ==
* [https://nixcademy.com/posts/running-nixos-integration-tests-on-macos/ Run NixOS Integration Tests on macOS, Nixcademy]
* [https://nixcademy.com/posts/nixos-integration-tests/ Unveiling the Power of the NixOS Integration Test Driver (Part 1), Nixcademy]
* [https://nixcademy.com/posts/nixos-integration-tests-part-2/ Unveiling the Power of the NixOS Integration Test Driver (Part 2), Nixcademy]


[[Category:NixOS]]
[[Category:NixOS]]