File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 99} :
1010let
1111 inherit pkgs ;
12- tests = 10000 ;
1312 project = {
1413 src = ./. ;
1514
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 ] ;
Original file line number Diff line number Diff line change @@ -10,17 +10,19 @@ import Proto.Compiler_Fields (compilerResult)
1010import Test.LambdaBuffers.Compiler.Coverage (coverage )
1111import Test.LambdaBuffers.Compiler.Mutation qualified as Mut
1212import Test.LambdaBuffers.Compiler.WellFormed (genCompilerInput )
13- import Test.Tasty (TestTree , testGroup )
13+ import Test.Tasty (TestTree , adjustOption , testGroup )
1414import Test.Tasty.HUnit (HasCallStack )
1515import Test.Tasty.Hedgehog (testProperty )
16+ import Test.Tasty.Hedgehog qualified as H
1617
1718test :: TestTree
1819test =
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
2527compilationOk :: H. MonadTest m => CompilerOutput -> m ()
2628compilationOk compOut = compOut H. === (defMessage & compilerResult .~ defMessage)
You can’t perform that action at this time.
0 commit comments