-
Notifications
You must be signed in to change notification settings - Fork 1.7k
TestCase location hint #4672
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
Comments
Could you provide more information on this bug? What are you trying to do? Example code and what you expect would be great. Thanks. Added NeedsInfo label. |
This comment was originally written by [email protected] Sorry for delay. Being on vacation. I meant a hint with information about test/group method invocation location. For example information could contain the file URI and the line number. It useful for quick navigation to the test/group method invocation. Now it's only possible after a test fails and we can check the stack trace. |
Added Area-Library, Triaged labels. |
CC'ing Gram as this is about Unit Test library. CC'ing Devon because I think Dart Editor team would like to add a UNit test running to editor, and allow a user to run a single test and navigate to a single test. cc @gramster. |
Groups can be nested, so you could just add an outer group to your tests with the file name... |
Removed Area-Library label. |
Added Pkg-Unittest label. |
Removed Area-UnitTest label. |
The relevant bug on the IntelliJ side: http://youtrack.jetbrains.com/issue/WEB-1588 |
The rub is that there is currently no way for tools to infer a source location from a TestCase unless the test failed. If the test has failed, there's a stack trace to parse. Not pretty but doable. No such luck in the passing case though. Where this comes into play is in a tool, such as WebStorm/IDEA or Eclipse/DartEditor, where you want to display a navigable test result view. I'm optimistically bumping this to 1.4 in the hopes that we get "making unittest more tool-friendly" on the agenda as cleanup happens. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
This issue has been moved to dart-lang/test#150. |
This issue was originally filed by [email protected]
Add locationHint field with location of the Test.
The text was updated successfully, but these errors were encountered: