Skip to content

Commit

Permalink
Merge pull request #8 from cryptosense/prepare-release
Browse files Browse the repository at this point in the history
Prepare release 1.0.0
  • Loading branch information
bbc2 authored Feb 24, 2023
2 parents f8d0363 + d058e0f commit 380e62a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
22 changes: 16 additions & 6 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# Change Log
# Changelog

## 0.1.1
All notable changes to this project will be documented in this file.

* Use Dune instead of jbuilder.
* Upgrade to Opam 2.0.
* Run tests in CI.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.1.0
## 1.0.0 - 2023-02-24

- Fix dependency on OUnit: `oUnit` -> `ounit2`.
- Require OCaml >= 4.07.

## 0.1.1 - 2020-02-07

- Use Dune instead of jbuilder.
- Upgrade to Opam 2.0.
- Run tests in CI.

## 0.1.0 - 2018-03-16

Initial release.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Mock - configurable functions to test impure code
[![Build Status](https://travis-ci.org/cryptosense/ocaml-mock.svg?branch=master)](https://travis-ci.org/cryptosense/ocaml-mock) [![docs](https://img.shields.io/badge/doc-online-blue.svg)](https://cryptosense.github.io/ocaml-mock/doc/)

[![Build Status][build_status_badge]][build_status_link]
[![Documentation][doc_badge]][doc_link]

This package provides "mocks", fake functions that can be configured to return
values or raise exceptions. It is possible to inspect their arguments after
Expand All @@ -10,6 +12,10 @@ it makes it possible to have pleasant output like this in your tests:

> expected f to be called once, but it was called 3 times
A wrapper for `OUnit2` is available as `mock-ounit`.
A wrapper for OUnit is available as `mock-ounit`.

[build_status_badge]: https://github.com/cryptosense/ocaml-mock/actions/workflows/main.yml/badge.svg
[build_status_link]: https://github.com/cryptosense/ocaml-mock/actions/workflows/main.yml
[doc_badge]: https://img.shields.io/badge/doc-online-blue.svg
[doc_link]: https://cryptosense.github.io/ocaml-mock/doc/
[unittest.mock]: https://docs.python.org/3/library/unittest.mock.html
4 changes: 2 additions & 2 deletions mock-ounit.opam
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ maintainer: ["Cryptosense <[email protected]>"]
authors: ["Cryptosense <[email protected]>"]
homepage: "https://github.com/cryptosense/ocaml-mock"
bug-reports: "https://github.com/cryptosense/ocaml-mock/issues"
license: "BSD-2"
license: "BSD-2-Clause"
dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git"
doc: "https://cryptosense.github.io/ocaml-mock/doc"
build: [
Expand All @@ -16,7 +16,7 @@ depends: [
"dune"
"mock"
"ocaml" {>= "4.07.0"}
"ounit"
"ounit2"
"ppx_deriving" {with-test}
]
synopsis: "OUnit wrapper for OCaml mock"
2 changes: 1 addition & 1 deletion mock.opam
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ maintainer: ["Cryptosense <[email protected]>"]
authors: ["Cryptosense <[email protected]>"]
homepage: "https://github.com/cryptosense/ocaml-mock"
bug-reports: "https://github.com/cryptosense/ocaml-mock/issues"
license: "BSD-2"
license: "BSD-2-Clause"
dev-repo: "git+https://github.com/cryptosense/ocaml-mock.git"
doc: "https://cryptosense.github.io/ocaml-mock/doc"
build: [
Expand Down
2 changes: 1 addition & 1 deletion tests/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(test
(name test_suite)
(libraries
oUnit
ounit2
mock
mock-ounit
)
Expand Down

0 comments on commit 380e62a

Please sign in to comment.