-
Notifications
You must be signed in to change notification settings - Fork 8
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
Machine readable output #88
Comments
This comment was copied over from: disneystreaming/weaver-test#716 (comment) Can you elaborate on the context of the question ? Weaver doesn't come with a CLI, but integrates with Scala build tools (sbt, mill, scala-cli) via the sbt test-interface https://github.com/sbt/test-interface. How are you intending to run the tests, such that results written in json would be relevant ? |
This comment was copied over from: disneystreaming/weaver-test#716 (comment) Yes, sorry, I'll give more context I'm using Sbt and I'm trying to integrate test results with Neovim. What this means for me is being able to filter failing tests, go to test location and show the output of the failed test. To do this I need test result, test name, file, line of the test, output. I've found a way of doing this to some extent by using an Sbt plugin which extract some of that information using an example of what I'm getting back:
Ultimately this data is being extracted from a sbt.testing.Event There is an important bit of information missing though, which is the test output (e.g. why the expectations failed, diff outputs, etc) which I believe is produced using a logger. Now, I'm not familiar with the implementation here, so this is me mostly trying to find a good way to implement this. The way I was thinking to work around this is by parsing the test output, but it's a bit tricky and would be much easier if we could change the logger format to be json by using a config value or something like that. Sorry for the rant and if you think there is a simpler way of achieving this, I would greatly appreciate the feedback :) |
This comment was copied over from: disneystreaming/weaver-test#716 (comment) Sorry for getting back to you only now. Could you provide an example json payload you get for a failed test ? |
This comment was copied over from: disneystreaming/weaver-test#716 (comment) uninformed question, isn't this sort of thing covered by BSP? |
Closing as a duplicate. |
This issue was copied over from: disneystreaming/weaver-test#716
It was opened by: caenrique
Would it be possible to have the tests results written as json? This would make tooling integration much simpler
The text was updated successfully, but these errors were encountered: