File tree Expand file tree Collapse file tree 6 files changed +32
-8
lines changed
Expand file tree Collapse file tree 6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 11# Changes
22
3+ ## 0.9
4+
5+ - add ` qcheck-ounit ` sublibrary
6+ - use environment variables to configure ` qcheck-alcotest ` tests
7+ - alcotest backend for qcheck
8+ - make ` qcheck.ounit ` tests verbose by default
9+ - make ` qcheck ` is a compatibility library, depends on ` qcheck-core `
10+ - split lib into ` qcheck ` and ` qcheck.ounit `
11+ - add ` TestResult.is_success ` helper
12+ - give access to list of instances in test results
13+ - allow setting ` time_between_msg ` in runner
14+
15+ - chore: remove submodule
16+ - chore: add travis support
17+ - doc: explanations about qcheck.ounit runners
18+ - doc: update readme
19+
320## 0.8
421
522- migrate to jbuilder
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ VERSION=$(shell awk '/^version:/ {print $$2}' qcheck.opam)
2929
3030update_next_tag :
3131 @echo " update version to $( VERSION) ..."
32- sed -i " s/NEXT_VERSION/$( VERSION) /g" src/ * .ml src/ * .mli
33- sed -i " s/NEXT_RELEASE/$( VERSION) /g" src/ * .ml src/ * .mli
32+ sed -i " s/NEXT_VERSION/$( VERSION) /g" ` find src -name ' *.ml' -or -name ' *.mli' `
33+ sed -i " s/NEXT_RELEASE/$( VERSION) /g" ` find src -name ' *.ml' -or -name ' *.mli' `
3434
3535release : update_next_tag
3636 @echo " release version $( VERSION) ..."
Original file line number Diff line number Diff line change 77 [QCHECK_VERBOSE] if "1" or "true", will make tests verbose
88 [QCHECK_SEED] if an integer, will fix the seed
99 [QCHECK_LONG] is present, will trigger long tests
10+
11+ @since 0.9
1012*)
1113
1214val to_alcotest :
1315 ?verbose : bool -> ?long : bool -> ?rand : Random.State .t ->
1416 QCheck.Test .t -> unit Alcotest .test_case
1517(* * Convert a qcheck test into an alcotest test
1618 @param verbose used to print information on stdout (default: [verbose()])
17- @param rand the random generator to use (default: [random_state ()]) *)
19+ @param rand the random generator to use (default: [random_state ()])
20+ @since 0.9
21+ *)
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ module TestResult : sig
620620 stats_tbl : ('a stat * (int , int ) Hashtbl .t ) list ; (* * @since 0.6 *)
621621 mutable instances : 'a list ;
622622 (* * List of instances used for this test, in no particular order.
623- @since NEXT_RELEASE *)
623+ @since 0.9 *)
624624 }
625625
626626 val collect : _ t -> (string ,int ) Hashtbl .t option
@@ -633,7 +633,7 @@ module TestResult : sig
633633
634634 val is_success : _ t -> bool
635635 (* * Returns true iff the state if [Success]
636- @since NEXT_RELEASE *)
636+ @since 0.9 *)
637637end
638638
639639module Test : sig
Original file line number Diff line number Diff line change 11
2- (* * {1 Conversion of tests to OUnit Tests} *)
2+ (* * {1 Conversion of tests to OUnit Tests}
3+
4+ @since 0.9
5+ *)
36
47val to_ounit_test :
58 ?verbose : bool -> ?long : bool -> ?rand : Random.State .t ->
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ val set_long_tests : bool -> unit
5252
5353val get_time_between_msg : unit -> float
5454(* * Get the minimum time to wait between printing messages.
55- @since NEXT_RELEASE *)
55+ @since 0.9 *)
5656
5757val set_time_between_msg : float -> unit
5858(* * Set the minimum tiem between messages.
59- @since NEXT_RELEASE *)
59+ @since 0.9 *)
6060
6161(* * {2 Run a Suite of Tests and Get Results} *)
6262
You can’t perform that action at this time.
0 commit comments