nix: pass through hspec arguments to postgrest-test-spec

This allows e.g. running

  postgrest-test-spec --match "some failing test"
This commit is contained in:
Robert Vollmert
2022-06-07 21:36:38 +02:00
committed by Robert
parent 09f3e09c96
commit 4c8c3ccfb2
+3 -1
View File
@@ -20,11 +20,13 @@ let
{
name = "postgrest-test-spec";
docs = "Run the Haskell test suite";
args = [ "ARG_LEFTOVERS([hspec arguments])" ];
inRootDir = true;
withEnv = postgrest.env;
}
''
${withTools.withPg} ${cabal-install}/bin/cabal v2-run ${devCabalOptions} test:spec
${withTools.withPg} ${cabal-install}/bin/cabal v2-run ${devCabalOptions} \
test:spec -- "''${_arg_leftovers[@]}"
'';
testQuerycost =