From 4c8c3ccfb218bc2667882234280c536ac00f05ab Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 7 Jun 2022 09:45:53 +0200 Subject: [PATCH] nix: pass through hspec arguments to postgrest-test-spec This allows e.g. running postgrest-test-spec --match "some failing test" --- nix/tools/tests.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/tools/tests.nix b/nix/tools/tests.nix index 0dc1dfc2d..e8c66bfe7 100644 --- a/nix/tools/tests.nix +++ b/nix/tools/tests.nix @@ -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 =