-
Notifications
You must be signed in to change notification settings - Fork 36
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
Doesn't render tickmarks for mocha theme on Windows #99
Comments
Hi @TAGC, have you tried doing this from the FAQs? |
That's probably it. I'm having trouble changing the encoding used during testing, though. In your gradle-test-logger-plugin/build.gradle Lines 75 to 85 in 328bdfa
I'm using the Kotlin DSL and tried doing the equivalent in mine: val test by tasks.getting(Test::class) {
useJUnitPlatform { }
systemProperties["file.encoding"] = "UTF-8"
systemProperties["foo"] = "bar"
println(systemProperties)
testLogging {
events("PASSED", "FAILED", "SKIPPED")
}
testlogger {
setTheme("mocha")
}
} The "foo" property gets set but the file encoding still remains as windows-1252: But yeah if I fix that, I guess that'll resolve this issue. |
Creating a I still see question marks, but I guess the next step is to change the terminal code page as shown in the FAQ. I'll update when I've tried that. |
Is it not
Unfortunate truth about Windows :-( |
I have done a similar comparison in the past and isolated the problem to the way Java prints Strings on the console. The JS libraries on the other hand, ultimately delegate to native code to do the printing. But I have it working on my Windows machine. Let me share some settings in sometime. By the way you can try cloning this repo and running the tests to see if it's a problem with the plugin code or some configuration in your project.
|
I had to set
|
Ah okay, yeah that works, thanks. Shame that it has to be done through the environment variable though and doesn't pick up on the equivalent setting defined in |
I will clarify this in the documentation. I too went through multiple hoops before eventually realising that setting an environment variable was the most reliable option. |
The tickmarks from the "mocha" and "mocha-parallel" theme get rendered as question marks on Windows, as shown below.
Tested on:
I'm using 64-bit Windows 10.
The text was updated successfully, but these errors were encountered: