Skip to content

Commit 52e4193

Browse files
committed
prepare for 0.9
1 parent cd87a44 commit 52e4193

File tree

6 files changed

+32
-8
lines changed

6 files changed

+32
-8
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
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

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ VERSION=$(shell awk '/^version:/ {print $$2}' qcheck.opam)
2929

3030
update_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

3535
release: update_next_tag
3636
@echo "release version $(VERSION)..."

src/alcotest/QCheck_alcotest.mli

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
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

1214
val 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+
*)

src/core/QCheck.mli

+2-2
Original file line numberDiff line numberDiff 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 *)
637637
end
638638

639639
module Test : sig

src/ounit/QCheck_ounit.mli

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

2-
(** {1 Conversion of tests to OUnit Tests} *)
2+
(** {1 Conversion of tests to OUnit Tests}
3+
4+
@since 0.9
5+
*)
36

47
val to_ounit_test :
58
?verbose:bool -> ?long:bool -> ?rand:Random.State.t ->

src/runner/QCheck_base_runner.mli

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ val set_long_tests : bool -> unit
5252

5353
val 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

5757
val 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

0 commit comments

Comments
 (0)