[Nix-dev] NixOS configuration unit tests

2015-01-23 Thread Wout Mertens
I'm thinking that it might be a good idea to have unit tests for the configuration.nix descriptions. That way we can be more sure that a change doesn't have unintended consequences. For example, we could have tests like if you set config.foo and config.bar, the evaluation should fail and if you

Re: [Nix-dev] NixOS configuration unit tests

2015-01-23 Thread Matthias Beyer
On 23-01-2015 14:04:22, Wout Mertens wrote: I'm thinking that it might be a good idea to have unit tests for the configuration.nix descriptions. That way we can be more sure that a change doesn't have unintended consequences. Really good idea! For example, we could have tests

Re: [Nix-dev] NixOS configuration unit tests

2015-01-23 Thread Eelco Dolstra
Hi, On 23/01/15 15:04, Wout Mertens wrote: I'm thinking that it might be a good idea to have unit tests for the configuration.nix descriptions. That way we can be more sure that a change doesn't have unintended consequences. For example, we could have tests like if you set config.foo and