how do I reference files in commonTest/test/resour...
# multiplatform
b
how do I reference files in commonTest/test/resources in test cases?
✅ 1
j
c
No JS nor WASM though
b
This was YEARS ago around the early public releases of KMP supporting JS and we dealt with it the MacGyver way: Add a gradle task that processes resources and generates code, inlining the byte-representations of those resources into a global map inside the test sources and access them by map key. Test compile times were utterly abysmal, but it worked 😉
b
it feels like an important omission; would have expected to write tests in commonTest and run it on all platforms, but resolving files from classpath/relative to the test src directory is still missing from the official build