-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[WIP] Scala Native: run tests, ZIO 2 #7883
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
Conversation
|
Unfortunately the test's don't run at all, they seem to crash right after they are supposed to start, e.g.: sbt> coreTestsNative/testOnly zio.ZIOSpec
[info] Starting process '/home/ondra/Projects/zio/core-tests/native/target/scala-2.13/core-tests-test-out' on port '40119'.
[info] No tests were executed
[error] Error during tests:
[error] zio.ZIOSpec
[error] (coreTestsNative / Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 1 s, completed Feb 28, 2023, 12:47:43 PM@lolgab would you have any idea or hint what could be going wrong here? Or how to debug it? 🙏 |
|
@sideeffffect Try to see why the tests failed execution (turn on verbose error output or view last error in SBT). |
|
Here's the output. I hope it will be helpful. How do I "turn on verbose error output"? |
|
Here's what I get: |
|
After cleaning it completes but there is no output: |
|
I hope I don't cloud the issue, but I was taking a brief look at this, and if I bump the scala-native version to and checking the corresponding In |
|
@alterationx10 I don't think you are clouding the issue at all as there was not a lot of clarity on the issue and if anything you are shedding a light on it. 😃 I think the platform specific |
|
@adamgfraser I think you are correct. Concerning
I added a quick/similar override to the native implementation: and it prints this error: |
|
So, I essentially copy/pasted the JS implementation into an override of execute in the native implementation, and they run now. In the |
|
@alterationx10 Great! Do |
|
Sure! I can try to clean up a PR later tonight, if @sideeffffect doesn't beat me to it! |
complements #7031