mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
docs: add tests README
This commit is contained in:
parent
8ed302a883
commit
9748343868
23
tests/README.adoc
Normal file
23
tests/README.adoc
Normal file
@ -0,0 +1,23 @@
|
||||
= Tests
|
||||
:toc:
|
||||
|
||||
|
||||
Yes, tests!
|
||||
We have tests for the major components of this NixOS configuration including the link:../lib[custom library], link:../modules/nixos[our custom NixOS modules], link:../modules/home-manager[custom home-manager modules], and so on.
|
||||
|
||||
Each of the test suite follows how the upstream does their tests.
|
||||
For example, our home-manager module tests just copies what the upstream is doing.
|
||||
|
||||
You should be able to test them with the following command:
|
||||
|
||||
[source, shell]
|
||||
----
|
||||
# These commands assume you're in the project root.
|
||||
|
||||
# This test is for home-manager module tests.
|
||||
nix-shell --pure ./tests/modules/home-manager -A list
|
||||
|
||||
# This is for the library.
|
||||
nix eval -f ./tests lib
|
||||
----
|
||||
|
Loading…
Reference in New Issue
Block a user