Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting improvements #246

Merged
merged 21 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9e5af13
Indent printed events slightly
craigfe May 17, 2020
e3d7970
Collapse `$HOME' path prefixes to `~' in printed output
craigfe May 18, 2020
8f12eae
Standardise printing of ERROR and FAIL messages
craigfe May 18, 2020
8013d5f
Fix some degenerate uses of Format strings
craigfe May 18, 2020
5da72c8
Ensure summary is printed inside a vbox
craigfe May 18, 2020
f2e8dbd
Use coloured --compact output
craigfe May 18, 2020
ed39d2f
Wrap --compact output to the terminal width
craigfe May 18, 2020
4a9b776
Add space between `Expected' and `Received' when wrapping occurs
craigfe May 18, 2020
72e2824
Use FAIL rather than ERROR in results when appropriate
craigfe May 22, 2020
9cb1d22
Suggest `exe_name' symlink rather than `latest' in output
craigfe May 22, 2020
df3124e
Left-align exception backtraces in results
craigfe May 22, 2020
c55850d
Refactor log_dir symlink printing
craigfe May 22, 2020
ff2d485
Shift horizontal rule formatter to Pp
craigfe May 25, 2020
2deb8d3
Preserve colours in Alcotest.fail output
craigfe May 25, 2020
29dcfd0
Avoid use of Fun for pre-4.08 compatibility
craigfe May 25, 2020
f641ac7
Re-implement List.init for pre-4.06 compatibility
craigfe May 25, 2020
0c6a609
Scrap the test of default colouring in Dune
craigfe May 25, 2020
4a9d70b
Don't reference created symlinks on Windows
craigfe May 25, 2020
a47603e
Test failures are always marked with `FAIL'
craigfe Jun 1, 2020
e6d77bc
Display UTF-8 characters in terminal output
craigfe Jun 5, 2020
b8eab03
Handle non-filesystem-safe characters in test suite names
craigfe Jun 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
(ALCOTEST_COLOR auto))))
```

- Fix a crash when using non-filesystem-safe characters in test suite names.
(#246, @CraigFe)

### 1.1.0 (2020-04-03)

- Fix handling of CLI options for `Alcotest_{async,lwt}.run`. (#222, @CraigFe)
Expand Down
2 changes: 1 addition & 1 deletion src/alcotest-engine/cli.ml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ struct
(`Msg "must be a comma-separated list of integers / integer ranges")
in
let print ppf set =
Fmt.pf ppf "%a" Fmt.(braces @@ list ~sep:comma int) (IntSet.elements set)
Fmt.(braces @@ list ~sep:comma int) ppf (IntSet.elements set)
in
Arg.conv (parse, print)

Expand Down
Loading