Speaking of NixOS test, I recently found this: <a href="https://numtide.com/blog/nix-vm-test-reproducible-integration-tests/" rel="nofollow">https://numtide.com/blog/nix-vm-test-reproducible-integratio...</a><p>---<p>IMO the most annoying part with NixOS Test is, just like any other parts of Nix/NixOS, it's horribly documented. Either the documentation is out-of-date or just not there at all.<p>I tried to write and run Playwright tests using NixOS Test but I hit a dead end. I just confused by the lack of documentation and gave up. Also kinda hard to use as you'd need to know the location of each browser driver executables. There also this thread (<a href="https://discourse.nixos.org/t/running-playwright-tests/25655/35" rel="nofollow">https://discourse.nixos.org/t/running-playwright-tests/25655...</a>) but it doesn't really help my case.<p>And if that's not already bad, I found this (<a href="https://nixos.org/manual/nixpkgs/stable/#ssec-package-tests-examples" rel="nofollow">https://nixos.org/manual/nixpkgs/stable/#ssec-package-tests-...</a>) section of the docs recently and it said "This section has been moved to pkgs/README.md.", but when I read the README file, it doesn't have what the test package example I was looking for! This is... annoying<p>Nix is a very good piece of software, I will even say it's one of the best piece of software ever made. But, what's the point of making software if no one else can understand it? I hope this become a lesson
Can someone here provide some more context on how this is supposed to be used, and what is great about this approach?<p>Concrete Questions:<p>- Is this about the official test suite, or general testing with Nix?<p>- Is this only about Python applications or general?<p>- How does this compare to testing / debugging flows on Debian, Alpine, CentOS?<p>- When would I care about this?
Speaking of useful “break” constructs in Nix for debugging;<p>Break within a Nix derivation to debug it:
<a href="https://discourse.nixos.org/t/debug-a-failed-derivation-with-breakpointhook-and-cntr/8669/1" rel="nofollow">https://discourse.nixos.org/t/debug-a-failed-derivation-with...</a><p>Break on a Nix expression evaluation to debug it:
<a href="https://nix.dev/manual/nix/2.18/language/builtins#builtins-break" rel="nofollow">https://nix.dev/manual/nix/2.18/language/builtins#builtins-b...</a>