Skip to content

Commit 197159b

Browse files
committed
Removed the Nix magic that doesn't work and hardcoded the limit within code
1 parent 5635dea commit 197159b

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

lambda-buffers-compiler/build.nix

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
}:
1010
let
1111
inherit pkgs;
12-
tests = 10000;
1312
project = {
1413
src = ./.;
1514

@@ -29,12 +28,6 @@ let
2928

3029
# Enable strict compilation
3130
lambda-buffers-compiler.configureFlags = [ "-f-dev" ];
32-
33-
# Set the number of QuickCheck and Hedgehog tests
34-
lambda-buffers-compiler.components.tests.lambda-buffers-compiler-tests.configureFlags = [
35-
"--hedgehog-tests=${tests}"
36-
"--quickcheck-tests=${tests}"
37-
];
3831
};
3932
})
4033
];

lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler.hs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ import Proto.Compiler_Fields (compilerResult)
1010
import Test.LambdaBuffers.Compiler.Coverage (coverage)
1111
import Test.LambdaBuffers.Compiler.Mutation qualified as Mut
1212
import Test.LambdaBuffers.Compiler.WellFormed (genCompilerInput)
13-
import Test.Tasty (TestTree, testGroup)
13+
import Test.Tasty (TestTree, adjustOption, testGroup)
1414
import Test.Tasty.HUnit (HasCallStack)
1515
import Test.Tasty.Hedgehog (testProperty)
16+
import Test.Tasty.Hedgehog qualified as H
1617

1718
test :: TestTree
1819
test =
19-
testGroup
20-
"Compiler API tests"
21-
[ allWellFormedCompInpCompile
22-
, allWellFormedCompInpCompileAfterBenignMut
23-
]
20+
adjustOption (\_ -> H.HedgehogTestLimit $ Just 10_000) $
21+
testGroup
22+
"Compiler API tests"
23+
[ allWellFormedCompInpCompile
24+
, allWellFormedCompInpCompileAfterBenignMut
25+
]
2426

2527
compilationOk :: H.MonadTest m => CompilerOutput -> m ()
2628
compilationOk compOut = compOut H.=== (defMessage & compilerResult .~ defMessage)

0 commit comments

Comments
 (0)