Skip to content

Add Ocaml bytes testable. - #253

Merged
craigfe merged 5 commits into
mirage:masterfrom
mefyl:master
May 30, 2020
Merged

craigfe merged 5 commits into
mirage:masterfrom
mefyl:master

Conversation

@mefyl

@mefyl mefyl commented May 30, 2020

Copy link
Copy Markdown
Contributor

Printing relies on Format escaping with %S, which I think is exactly what we want : plain text as long as it's printable, escaped otherwise.

Comment thread Makefile Outdated
Comment on lines +12 to +13
format:
ocamlformat --inplace $(git ls-files '*.ml' '*.mli')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the same as dune build --auto-promote @fmt? If so, I prefer that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly, I didn't know about it

@mefyl

mefyl commented May 30, 2020

Copy link
Copy Markdown
Contributor Author

I think https://travis-ci.org/github/mirage/alcotest/jobs/692835567 is transient (GPG key error), is there any way to rerun that one ?

@craigfe

craigfe commented May 30, 2020

Copy link
Copy Markdown
Member

I've restarted it.

@craigfe

craigfe commented May 30, 2020

Copy link
Copy Markdown
Member

Thanks :)

@craigfe
craigfe merged commit d0f98fc into mirage:master May 30, 2020
craigfe added a commit to craigfe/opam-repository that referenced this pull request Jul 13, 2020
…age (1.2.0)

CHANGES:

- Add an `alcotest-mirage` package, allowing the construction of MirageOS
  unikernels that run Alcotest test suites. (mirage/alcotest#238, @hannesm @linse)

- Add `Alcotest.check'`, a variant of `Alcotest.check` with labeled arguments.
  (mirage/alcotest#239, @hartmut27)

- Add a testable for the `bytes` type. (mirage/alcotest#253, @mefyl)

- Many assorted improvements to Alcotest output formatting. (mirage/alcotest#246, @craigfe)

- Default to `--color=always` when running inside Dune (mirage/alcotest#242, @craigfe). The
  value can be overridden by setting the `ALCOTEST_COLOR` variable in a `dune`
  file, for example:

```dune
(env
 (_
  (env-vars
   (ALCOTEST_COLOR auto))))
```

- Support all UTF-8 characters in test names and suite names, by normalising
  them for file-system interactions. (mirage/alcotest#249, @gs0510; mirage/alcotest#246, @craigfe)

- Fix various crashes when using non-filesystem-safe characters in test suite
  names (these break Alcotest when attempting to generate a corresponding log
  file). (mirage/alcotest#241, @mefyl; mirage/alcotest#246 @craigfe)
@mefyl
mefyl deleted the master branch April 7, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants