Skip to content
Snippets Groups Projects
Commit bac03685 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

gitlab-ci: Use reasonable number of quickcheck tests

100 tests is entirely insufficient to achieve reasonable coverage.
parent 821ac474
No related branches found
No related tags found
1 merge request!30gitlab-ci: Use reasonable number of quickcheck tests
Pipeline #110223 failed
Pipeline: test-primops

#110224

    variables:
    GIT_STRATEGY: clone
    # We run the expression correctness tests significantly more iterations
    # since they cover a much larger phase space.
    # See Note [Tests of test-primops] in app/Main.hs
    EXPR_TESTS: 10000
    OTHER_TESTS: 100
    include: template.yml
    ......
    ......@@ -55,5 +55,11 @@ if [ ! -z ${GHC_ARGS+x} ]; then
    ARGS+=("--ghc-args" "$GHC_ARGS")
    fi
    ./run.sh run "${ARGS[@]}"
    if [ ! -z ${QUICKCHECK_TESTS+x} ]; then
    ARGS+=("--quickcheck-tests" "$QUICKCHECK_TESTS")
    fi
    # See Note [Tests of test-primops] in app/Main.hs
    ./run.sh run "${ARGS[@]}" -p '$0 == "test primops/expression correctness"' --quickcheck-tests=$EXPR_TESTS
    ./run.sh run "${ARGS[@]}" -p '$0 != "test primops/expression correctness"' --quickcheck-tests=$OTHER_TESTS
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment