TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Interactive NixOS Tests

78 pointsby l0b09 months ago

3 comments

muhrizqiardi9 months ago
Speaking of NixOS test, I recently found this: <a href="https:&#x2F;&#x2F;numtide.com&#x2F;blog&#x2F;nix-vm-test-reproducible-integration-tests&#x2F;" rel="nofollow">https:&#x2F;&#x2F;numtide.com&#x2F;blog&#x2F;nix-vm-test-reproducible-integratio...</a><p>---<p>IMO the most annoying part with NixOS Test is, just like any other parts of Nix&#x2F;NixOS, it&#x27;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&#x27;d need to know the location of each browser driver executables. There also this thread (<a href="https:&#x2F;&#x2F;discourse.nixos.org&#x2F;t&#x2F;running-playwright-tests&#x2F;25655&#x2F;35" rel="nofollow">https:&#x2F;&#x2F;discourse.nixos.org&#x2F;t&#x2F;running-playwright-tests&#x2F;25655...</a>) but it doesn&#x27;t really help my case.<p>And if that&#x27;s not already bad, I found this (<a href="https:&#x2F;&#x2F;nixos.org&#x2F;manual&#x2F;nixpkgs&#x2F;stable&#x2F;#ssec-package-tests-examples" rel="nofollow">https:&#x2F;&#x2F;nixos.org&#x2F;manual&#x2F;nixpkgs&#x2F;stable&#x2F;#ssec-package-tests-...</a>) section of the docs recently and it said &quot;This section has been moved to pkgs&#x2F;README.md.&quot;, but when I read the README file, it doesn&#x27;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&#x27;s one of the best piece of software ever made. But, what&#x27;s the point of making software if no one else can understand it? I hope this become a lesson
评论 #41443878 未加载
评论 #41444027 未加载
heinrichhartman9 months ago
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 &#x2F; debugging flows on Debian, Alpine, CentOS?<p>- When would I care about this?
评论 #41444632 未加载
评论 #41444085 未加载
qazxcvbnm9 months ago
Speaking of useful “break” constructs in Nix for debugging;<p>Break within a Nix derivation to debug it: <a href="https:&#x2F;&#x2F;discourse.nixos.org&#x2F;t&#x2F;debug-a-failed-derivation-with-breakpointhook-and-cntr&#x2F;8669&#x2F;1" rel="nofollow">https:&#x2F;&#x2F;discourse.nixos.org&#x2F;t&#x2F;debug-a-failed-derivation-with...</a><p>Break on a Nix expression evaluation to debug it: <a href="https:&#x2F;&#x2F;nix.dev&#x2F;manual&#x2F;nix&#x2F;2.18&#x2F;language&#x2F;builtins#builtins-break" rel="nofollow">https:&#x2F;&#x2F;nix.dev&#x2F;manual&#x2F;nix&#x2F;2.18&#x2F;language&#x2F;builtins#builtins-b...</a>