Skip to content

Commit

Permalink
Merge pull request #16 from mbarbin/expect-tests
Browse files Browse the repository at this point in the history
Expect_tests_helpers_base
  • Loading branch information
mbarbin authored Aug 23, 2024
2 parents a85a9ff + a15cfd7 commit be73fb7
Show file tree
Hide file tree
Showing 24 changed files with 86 additions and 1,448 deletions.
17 changes: 17 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 0.0.6 (unreleased)

### Added

### Changed

- Now using `expect_test_helpers_base`.
- Upgrade to `err0` and more recent `commandlang`.

### Deprecated

### Fixed

### Removed

- Removed vendored `expect-test-helpers`.

## 0.0.5 (2024-08-19)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
(public_name ocaml-vcs)
(package vcs-command)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a)
(libraries commandlang-err commandlang-to-cmdliner vcs-command)
(libraries commandlang-to-cmdliner err0 vcs-command)
(instrumentation
(backend bisect_ppx)))
5 changes: 1 addition & 4 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ let () =
~name:"ocaml-vcs"
~version:"%%VERSION%%"
~exn_handler:(function
| Vcs.E e ->
Some
(Commandlang_err.Err.make
[ Commandlang_err.Err.pp_of_sexp (Vcs.Err.sexp_of_t e) ])
| Vcs.E e -> Some (Err0.Err.make [ Err0.Err.pp_of_sexp (Vcs.Err.sexp_of_t e) ])
| _ -> None [@coverage off])
;;
22 changes: 13 additions & 9 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
:dev
(>= 2.8.3)))
(commandlang
(>= 0.0.1))
(>= 0.0.2))
(eio
(>= 1.0))
(fpath
Expand Down Expand Up @@ -154,15 +154,15 @@
(cmdliner
(= 1.3.0))
(commandlang
(>= 0.0.1))
(commandlang-err
(>= 0.0.1))
(>= 0.0.2))
(commandlang-to-cmdliner
(>= 0.0.1))
(>= 0.0.2))
(eio
(>= 1.0))
(eio_main
(>= 1.0))
(err0
(>= 0.0.2))
(fpath
(>= 0.7.3))
(fpath-base
Expand Down Expand Up @@ -413,11 +413,9 @@
(cmdliner
(= 1.3.0))
(commandlang
(>= 0.0.1))
(commandlang-err
(>= 0.0.1))
(>= 0.0.2))
(commandlang-to-cmdliner
(>= 0.0.1))
(>= 0.0.2))
(core
(and
(>= v0.17)
Expand All @@ -426,6 +424,12 @@
(>= 1.0))
(eio_main
(>= 1.0))
(err0
(>= 0.0.2))
(expect_test_helpers_core
(and
(>= v0.17)
(< v0.18)))
(fpath
(>= 0.7.3))
(fpath-base
Expand Down
6 changes: 3 additions & 3 deletions example/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
-open
Base
-open
Expect_test_helpers
-open
Fpath_base
-open
Expect_test_helpers_base
-open
Or_error.Let_syntax)
(libraries
base
eio
eio_main
expect_test_helpers
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
Expand Down
6 changes: 3 additions & 3 deletions lib/vcs/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
-open
Base
-open
Expect_test_helpers
-open
Fpath_base
-open
Expect_test_helpers_base
-open
Or_error.Let_syntax)
(libraries
base
eio
eio_main
expect_test_helpers
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
Expand Down
13 changes: 10 additions & 3 deletions lib/vcs_arg/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@
-open
Base
-open
Expect_test_helpers
Fpath_base
-open
Fpath_base)
(libraries base eio eio_main expect_test_helpers fpath fpath-base vcs_arg)
Expect_test_helpers_base)
(libraries
base
eio
eio_main
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs_arg)
(instrumentation
(backend bisect_ppx))
(lint
Expand Down
7 changes: 5 additions & 2 deletions lib/vcs_command/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
-open
Base
-open
Expect_test_helpers)
(libraries base expect_test_helpers vcs_command)
Expect_test_helpers_base)
(libraries
base
expect_test_helpers_core.expect_test_helpers_base
vcs_command)
(instrumentation
(backend bisect_ppx))
(lint
Expand Down
6 changes: 3 additions & 3 deletions lib/vcs_git/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
-open
Base
-open
Expect_test_helpers
-open
Fpath_base
-open
Expect_test_helpers_base
-open
Or_error.Let_syntax)
(libraries
base
eio
eio_main
expect_test_helpers
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
Expand Down
12 changes: 9 additions & 3 deletions lib/vcs_git_blocking/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@
-open
Base
-open
Expect_test_helpers
Fpath_base
-open
Fpath_base)
(libraries base expect_test_helpers fpath fpath-base vcs vcs_git_blocking)
Expect_test_helpers_base)
(libraries
base
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
vcs_git_blocking)
(instrumentation
(backend bisect_ppx))
(lint
Expand Down
9 changes: 7 additions & 2 deletions lib/vcs_git_cli/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
-open
Base
-open
Expect_test_helpers)
(libraries base eio eio_main expect_test_helpers vcs_git_cli)
Expect_test_helpers_base)
(libraries
base
eio
eio_main
expect_test_helpers_core.expect_test_helpers_base
vcs_git_cli)
(instrumentation
(backend bisect_ppx))
(lint
Expand Down
6 changes: 3 additions & 3 deletions lib/vcs_test_helpers/test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
-open
Base
-open
Expect_test_helpers
-open
Fpath_base
-open
Expect_test_helpers_base
-open
Or_error.Let_syntax)
(libraries
base
eio
eio_main
expect_test_helpers
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
Expand Down
6 changes: 3 additions & 3 deletions test/expect/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
-open
Base
-open
Expect_test_helpers
-open
Fpath_base
-open
Expect_test_helpers_base
-open
Or_error.Let_syntax)
(libraries
base
eio
eio_main
expect_test_helpers
expect_test_helpers_core.expect_test_helpers_base
fpath
fpath-base
vcs
Expand Down
2 changes: 1 addition & 1 deletion vcs-arg.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ depends: [
"ocaml" {>= "5.2"}
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {dev & >= "2.8.3"}
"commandlang" {>= "0.0.1"}
"commandlang" {>= "0.0.2"}
"eio" {>= "1.0"}
"fpath" {>= "0.7.3"}
"fpath-base" {>= "0.0.9"}
Expand Down
6 changes: 3 additions & 3 deletions vcs-command.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ depends: [
"base" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {dev & >= "2.8.3"}
"cmdliner" {= "1.3.0"}
"commandlang" {>= "0.0.1"}
"commandlang-err" {>= "0.0.1"}
"commandlang-to-cmdliner" {>= "0.0.1"}
"commandlang" {>= "0.0.2"}
"commandlang-to-cmdliner" {>= "0.0.2"}
"eio" {>= "1.0"}
"eio_main" {>= "1.0"}
"err0" {>= "0.0.2"}
"fpath" {>= "0.7.3"}
"fpath-base" {>= "0.0.9"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
Expand Down
7 changes: 4 additions & 3 deletions vcs-tests.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ depends: [
"base_quickcheck" {>= "v0.17" & < "v0.18"}
"bisect_ppx" {dev & >= "2.8.3"}
"cmdliner" {= "1.3.0"}
"commandlang" {>= "0.0.1"}
"commandlang-err" {>= "0.0.1"}
"commandlang-to-cmdliner" {>= "0.0.1"}
"commandlang" {>= "0.0.2"}
"commandlang-to-cmdliner" {>= "0.0.2"}
"core" {>= "v0.17" & < "v0.18"}
"eio" {>= "1.0"}
"eio_main" {>= "1.0"}
"err0" {>= "0.0.2"}
"expect_test_helpers_core" {>= "v0.17" & < "v0.18"}
"fpath" {>= "0.7.3"}
"fpath-base" {>= "0.0.9"}
"mdx" {with-doc & >= "2.4"}
Expand Down
21 changes: 0 additions & 21 deletions vendor/expect-test-helpers/LICENSE

This file was deleted.

25 changes: 0 additions & 25 deletions vendor/expect-test-helpers/LICENSE.janestreet

This file was deleted.

25 changes: 0 additions & 25 deletions vendor/expect-test-helpers/src/dune

This file was deleted.

1 change: 0 additions & 1 deletion vendor/expect-test-helpers/src/expect_test_helpers.ml

This file was deleted.

Loading

0 comments on commit be73fb7

Please sign in to comment.