Dan Rusu
01/08/2023, 3:12 AMArrayAssertions
but am getting strange failures where it's complaining about differing strings that appear to be equal so I wonder if I'm running into some sort of character encoding issue:
▼ Expect that "▼ Expect that ['f', 'n', 'o', 'r', 'd']:
| ✗ array content equals ['d', 'i', 's', 'c', 'o', 'r', 'd']":
✗ is equal to "▼ Expect that ['f', 'n', 'o', 'r', 'd']:
| ✗ array content equals ['d', 'i', 's', 'c', 'o', 'r', 'd']"
found "▼ Expect that ['f', 'n', 'o', 'r', 'd']:
| ✗ array content equals ['d', 'i', 's', 'c', 'o', 'r', 'd']"
The way the tests are written makes it very difficult (and frustrating) to deal with test failures because:
1. Double-clicking on a failed test in IntelliJ doesn't navigate to the failing test
2. Clicking the Rerun Failed Tests
button makes it seem like they all pass because it doesn't actually rerun any tests
I don't have these issues when I use Strikt for testing my own project so I wonder if this is caused by using contexts instead of a separate test method per scenariochristophsturm
01/08/2023, 10:25 AMchristophsturm
01/08/2023, 10:28 AMDan Rusu
01/08/2023, 9:26 PMDan Rusu
01/08/2023, 9:27 PM\r\n
then the test passes but this doesn't feel like the correct solution.
I'm on Windows 11 with IntelliJ configured to use System-Dependent
line separator. I tried changing this property and rebuilding the project but no dice.robfletcher
01/09/2023, 7:22 PMDan Rusu
01/09/2023, 7:41 PMchristophsturm
01/09/2023, 9:17 PMrobfletcher
01/09/2023, 9:18 PMchristophsturm
01/09/2023, 9:34 PMchristophsturm
01/09/2023, 9:34 PMchristophsturm
01/09/2023, 9:39 PMrobfletcher
01/09/2023, 11:56 PMrobfletcher
01/09/2023, 11:57 PMrobfletcher
01/10/2023, 12:06 AMrobfletcher
01/10/2023, 12:06 AMrobfletcher
01/10/2023, 12:27 AMDan Rusu
01/10/2023, 6:24 PM./gradlew clean build --no-build-cache
without making any changes
And the tests fail. Running that inside the strikt-core
module produces:
647 tests completed, 87 failed
> Task :strikt-core:test FAILED
due to the same line-separator issue of missing `
Running git config --list
includes this line (which I haven't added manually):
core.autocrlf=true
robfletcher
01/10/2023, 6:35 PM--refresh-dependencies
and see if I hit the same thingrobfletcher
01/10/2023, 6:37 PMDan Rusu
01/10/2023, 7:35 PMsite.gradle.kts
to add the deprecated jcente repository and refresh gradle then the dependency issues go away:
repositories {
mavenCentral()
jcenter()
}
If I delete the jcenter()
line and refresh again then the dependency issues come back. I vaguely remember seeing something about someone else encountering the same dependency issue with Strikt.
I wonder if there's some additional dependency resolution setup for your environment.robfletcher
01/10/2023, 7:36 PM~/.gradle
that I think would affect thatchristophsturm
01/10/2023, 7:36 PMrobfletcher
01/10/2023, 7:36 PMDan Rusu
01/10/2023, 7:41 PMrobfletcher
01/10/2023, 7:42 PMrobfletcher
01/10/2023, 7:42 PMchristophsturm
01/10/2023, 8:03 PMrobfletcher
01/10/2023, 8:03 PMchristophsturm
01/10/2023, 8:06 PMrobfletcher
01/10/2023, 11:11 PMjcenter()
added back I get a link error trying to run that targetrobfletcher
01/10/2023, 11:24 PM/tmp
robfletcher
01/10/2023, 11:25 PM