marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.69k stars 129 forks source link

win10 powershell China the result will be unintelligible text #463

Open xingzheone opened 5 years ago

xingzheone commented 5 years ago
(ns feng.fengtest
    (:require [midje.sweet :refer :all])
)
(fact "one乱码s?>" :one 
      :feng => :fen
      (+ 3 2) => 321
      )
Loading (feng.fengtest)

FAIL one乱码s?> at (fengtest.clj:5)
Expected:
:fen
Actual:
:feng

FAIL one乱码s?> at (fengtest.clj:6)
Expected:
321
Actual:
5
nil
FAILURE: 2 checks failed.
[Completed at 12:07:04]

Oddly enough, there is only a judgement. Expected and Actual

xingzheone commented 5 years ago

in idea cursive , all ok

philomates commented 5 years ago

Hello, have you tried turning of colored results? According to https://github.com/marick/Midje/wiki/Colorizing#setting-color-via-environment-variable windows can have issues displaying results in color

xingzheone commented 5 years ago

set MIDJE_COLORIZE three of them The same is random code. It doesn't work.