Test

 

test.assertions
DescriptionThis option allows modules to express conditions that must hold for the evaluation of the system configuration to succeed, along with associated error messages for the user.
Type
list of (submodule)
Default
[ ]
Example
[
  {
    assertion = false;
    message = "you can't enable this for some reason";
  }
]
Declared inmodules/testing/test-options.nix
test.assertions.*.assertion
Descriptionassertion value
Type
boolean
Default
false
Declared inmodules/testing/test-options.nix
test.assertions.*.message
Descriptionassertion message
Type
string
Default
 
Declared inmodules/testing/test-options.nix
test.description
DescriptionTest description
Type
string
Default
 
Declared inmodules/testing/test-options.nix
test.enable
DescriptionWhether to enable test
Type
boolean
Default
true
Declared inmodules/testing/test-options.nix
test.name
DescriptionTest name
Type
string
Default
 
Declared inmodules/testing/test-options.nix
test.script
DescriptionTest script to use for e2e test
Type
null or strings concatenated with "\n" or path
Default
null
Declared inmodules/testing/test-options.nix