Skip to content

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

Closed
DartBot opened this issue Aug 23, 2012 · 15 comments
Closed

TestCase location hint #4672

DartBot opened this issue Aug 23, 2012 · 15 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Aug 23, 2012

This issue was originally filed by [email protected]


Add locationHint field with location of the Test.

@madsager
Copy link
Contributor

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.

@DartBot
Copy link
Author

DartBot commented Sep 11, 2012

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.

@anders-sandholm
Copy link
Contributor

Added Area-Library, Triaged labels.

@sethladd
Copy link
Contributor

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.
cc @devoncarew.

@gramster
Copy link

Groups can be nested, so you could just add an outer group to your tests with the file name...

@lrhn
Copy link
Member

lrhn commented Aug 19, 2013

Removed Area-Library label.
Added Area-UnitTest label.

@kevmoo
Copy link
Member

kevmoo commented Feb 12, 2014

Added Pkg-Unittest label.

@kevmoo
Copy link
Member

kevmoo commented Feb 12, 2014

Removed Area-UnitTest label.
Added Area-Pkg label.

@pq
Copy link
Member

pq commented Mar 18, 2014

The relevant bug on the IntelliJ side: http://youtrack.jetbrains.com/issue/WEB-1588

@pq
Copy link
Member

pq commented Apr 8, 2014

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.


cc @kevmoo.
Added this to the 1.4 milestone.

@kasperl
Copy link

kasperl commented May 8, 2014

Removed this from the 1.4 milestone.
Added this to the 1.5 milestone.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the 1.5 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Aug 4, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/test#150.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo removed the triaged label Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

9 participants