-
Notifications
You must be signed in to change notification settings - Fork 37
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
Strange colored output #227
Comments
I've tried: |
I discovered that directly running
|
I looked at this a bit to create a small repro: repro/dune:
repro/test.ml: let test =
QCheck2.Test.make ~name:"name" QCheck2.Gen.int (fun _ -> true)
let _ = QCheck_base_runner.run_tests (*~colors:true*) [test] With $ dune exec repro/test.exe -f
random seed: 283984449
================================================================================
success (ran 1 tests)
$ dune runtest repro/ -f
test alias repro/runtest
random seed: 4234572
random================================================================================
rando;32;1msuccess (ran 1 tests) The problem goes away if using This seems to be a known issue with dune: ocaml/dune#3160 qcheck/src/runner/QCheck_base_runner.ml Line 40 in be9a0e7
I'm wondering whether we need to clear the line before the first |
Closing as this should be fixed in ocaml/dune#5528 released with dune 3.5.0 |
With
colors
beingtrue
butlong
andverbose
beingfalse
, the output ofrun_tests_main
is somehow strange. Here is the captured output with control characters being escaped (except for line feeds). For some reasons,random
was repeated.I have tried different shells and terminal emulators, and the behavior seems to be the same.
The text was updated successfully, but these errors were encountered: