Expose more data in reporters for IDE integrations
See original GitHub issue@SimenB Great! Regarding benefits of using Jasmine reporter, I don’t have a complete list unfortunately. Some of them I could recall:
- An implication of sending events about
describe
/test
/it
: it allows to attach output to correct node in a test tree, and, when debugging, you can see live output ofconsole.log
/process.stdout.write
. - Failed assertions provide separate compact error messages and error stacks whereas Jest reporter provides a single merged error message+stack making it’s hard to show a compact error message for a failed element in the editor. It’d be great to provide separate values: expected/actual/message/stack.
_Originally posted by @segrey in https://github.com/facebook/jest/issues/8118#issuecomment-472505276_
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Metric Reporters | Apache Flink
Metrics can be exposed to an external system by configuring one or several reporters in conf/flink-conf.yaml . These reporters will be instantiated on...
Read more >Flink - Datadog Docs
Datadog collects Flink metrics through Flink's Datadog HTTP Reporter, which uses Datadog's HTTP API ... No additional installation is needed on your server....
Read more >GitLab CI/CD artifacts reports types
Some artifacts:reports types can be generated by multiple jobs in the same pipeline, and used by merge request or pipeline features from each...
Read more >US9336127B2 - Exposing method related data calls during testing ...
In embodiments, test control 50 and more specifically computing device 14 may be implemented as or on a testing integrated development environment (IDE)....
Read more >Debugging - Cypress Documentation
What you'll learn How Cypress runs in the same event loop with your code, keeping debugging less demanding and more understandable How Cypress...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sauravhiremath @kunal-kushwaha you can probably do the first part of this at the same time as https://github.com/MLH-Fellowship/jest/pull/32 etc
That’s wonderful @G-Rath, thank you!
This is essentially #6616, so if you wanna work on that, I’d start by taking a look at #9001 and break it up into smaller parts we can land separately.
@rogeliog has already listed the 4 things it does in the OP - I’d break them all out into separate PRs. I’d personally do it in the order 2, 1, 3, 4 since they all build upon one another. 2 and 1 are not dependent on one another, but 3 and 4 depend on both of them, and 2 is the change I think will be easiest to land. Happy to discuss these further if you want (feel free to open separate issues, or just fork #9001, rip out the parts you don’t need, and open up a PR with that for discussion).
This should be way easier so I recommend tackling this first - it’s “just” exposing more data on the
AssertionResult
object: https://github.com/facebook/jest/blob/084508290f4a90b28c3190021d3358ab1f753c3f/packages/jest-test-result/src/types.ts#L60-L70failureMessages
is an array of strings here, we should probably add something more structured (while avoiding a breaking change, so we need a new property)