File tree 6 files changed +32
-8
lines changed
6 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changes
2
2
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
+
3
20
## 0.8
4
21
5
22
- 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)
29
29
30
30
update_next_tag :
31
31
@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' `
34
34
35
35
release : update_next_tag
36
36
@echo " release version $( VERSION) ..."
Original file line number Diff line number Diff line change 7
7
[QCHECK_VERBOSE] if "1" or "true", will make tests verbose
8
8
[QCHECK_SEED] if an integer, will fix the seed
9
9
[QCHECK_LONG] is present, will trigger long tests
10
+
11
+ @since 0.9
10
12
*)
11
13
12
14
val to_alcotest :
13
15
?verbose : bool -> ?long : bool -> ?rand : Random.State .t ->
14
16
QCheck.Test .t -> unit Alcotest .test_case
15
17
(* * Convert a qcheck test into an alcotest test
16
18
@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
620
620
stats_tbl : ('a stat * (int , int ) Hashtbl .t ) list ; (* * @since 0.6 *)
621
621
mutable instances : 'a list ;
622
622
(* * List of instances used for this test, in no particular order.
623
- @since NEXT_RELEASE *)
623
+ @since 0.9 *)
624
624
}
625
625
626
626
val collect : _ t -> (string ,int ) Hashtbl .t option
@@ -633,7 +633,7 @@ module TestResult : sig
633
633
634
634
val is_success : _ t -> bool
635
635
(* * Returns true iff the state if [Success]
636
- @since NEXT_RELEASE *)
636
+ @since 0.9 *)
637
637
end
638
638
639
639
module Test : sig
Original file line number Diff line number Diff line change 1
1
2
- (* * {1 Conversion of tests to OUnit Tests} *)
2
+ (* * {1 Conversion of tests to OUnit Tests}
3
+
4
+ @since 0.9
5
+ *)
3
6
4
7
val to_ounit_test :
5
8
?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
52
52
53
53
val get_time_between_msg : unit -> float
54
54
(* * Get the minimum time to wait between printing messages.
55
- @since NEXT_RELEASE *)
55
+ @since 0.9 *)
56
56
57
57
val set_time_between_msg : float -> unit
58
58
(* * Set the minimum tiem between messages.
59
- @since NEXT_RELEASE *)
59
+ @since 0.9 *)
60
60
61
61
(* * {2 Run a Suite of Tests and Get Results} *)
62
62
You can’t perform that action at this time.
0 commit comments