-
Notifications
You must be signed in to change notification settings - Fork 2
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
mocha でテストを実行すると背景色によってはスタックトレースが見えない #29
Comments
http://d.hatena.ne.jp/tatanaideyo/20130122/1358872017 の手順を参考にUbuntu 16.04LTSで設定してみたところ、再現した。 |
組み込みのスキーム「Solarized Dark」 |
lib/reporters/base.js exports.colors = {
pass: 90,
fail: 31,
'bright pass': 92,
'bright fail': 91,
'bright yellow': 93,
pending: 36,
suite: 0,
'error title': 0,
'error message': 31,
'error stack': 90,
checkmark: 32,
fast: 90,
medium: 33,
slow: 31,
green: 32,
light: 90,
'diff gutter': 90,
'diff added': 32,
'diff removed': 31
}; ここで90番の色が設定されている箇所が、背景と同じ色なので見えなくなっている。 |
こんな風に強引に背景色を指定してみると、一応読めるようにはなった。 exports.colors = {
pass: '90;101',
fail: 31,
'bright pass': 92,
'bright fail': 91,
'bright yellow': 93,
pending: 36,
suite: 0,
'error title': 0,
'error message': 31,
'error stack': '90;101',
checkmark: 32,
fast: '90;101',
medium: 33,
slow: 31,
green: 32,
light: '90;101',
'diff gutter': '90;101',
'diff added': 32,
'diff removed': 31
}; |
ざっと目を通しましたがなんだかやり取りが噛み合ってないですね。 |
ありがとうございます、議論がどういうことになってるのか長すぎてまだ把握できてませんでした…… |
mochajs/mocha#2946, mochajs/mocha#2945 として報告したためこちらは閉じます。 |
CLA(Contributor License Agreement)もサインしておくと良いと思いますよ! |
Gnome terminal で solarized dark という配色にしているが、mocha で JS のテストを実行するとスタックトレースが見えない。mocha側できちんと背景色を指定すればいいはず。
The text was updated successfully, but these errors were encountered: