Skip to content
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

Handle unparseable UniqueID consistently #210

Closed
jlink opened this issue Mar 18, 2016 · 9 comments
Closed

Handle unparseable UniqueID consistently #210

jlink opened this issue Mar 18, 2016 · 9 comments

Comments

@jlink
Copy link
Contributor

jlink commented Mar 18, 2016

Discovering tests via UniqueIdSelector and a string-based unique ID that cannot be parsed by UniqueId.parse() is handled differently by each engine. Should be handled consistently in the launcher.

I see several options:

  • Throw (subtype of) JUnitException when executing the request or when creating the selector instance
  • Ignore selector and log with warning

I'd prefer the first one since a syntactically wrong unique ID can only come from a bug by users of the launcher API. It's like violating a precondition.

@marcphilipp
Copy link
Member

Original issue: #171.

@marcphilipp
Copy link
Member

marcphilipp commented Apr 27, 2016

Additional Proposals:

  • Return an AlwaysFailingTestDescriptor/DeadOnArrivalTestDescriptor/ErrorReportingTestDescriptor
  • Pass reporting objec from Launcher into each TestEngine to report unparsable unique IDs, etc.

@marcphilipp marcphilipp modified the milestones: 5.0 M2, 5.0 M1 Apr 29, 2016
@sbrannen sbrannen changed the title Using unparsable UniqueID should be handled consistently Use unparsable UniqueID consistently Jul 5, 2016
@sbrannen sbrannen changed the title Use unparsable UniqueID consistently Handle unparsable UniqueID consistently Jul 5, 2016
@sbrannen sbrannen modified the milestones: 5.0 M2, 5.0 M3 Jul 15, 2016
@sbrannen sbrannen modified the milestones: 5.0 M4, 5.0 M3 Jul 25, 2016
@marcphilipp marcphilipp modified the milestones: 5.0 M5, 5.0 M4 Jan 5, 2017
@marcphilipp marcphilipp changed the title Handle unparsable UniqueID consistently Handle unresolvable UniqueID consistently May 6, 2017
@marcphilipp marcphilipp modified the milestones: 5.0 M5, 5.0 M6 May 6, 2017
@marcphilipp
Copy link
Member

Since TestEngines now receive an already parsed UniqueId, I think this issue can be closed. The error reporting parts will be addressed in #242.

@junit-team/junit-lambda Thoughts?

@jlink
Copy link
Contributor Author

jlink commented Jul 13, 2017

Haven't read up on #242 but "unparsable" is different from "unresolvable". Unparsable is handled by parsing upfront. Unresolvable is not.

@marcphilipp
Copy link
Member

Fair enough. It seems the issue title and description are out of sync. Would you like to rephrase it to say unresolvable in the description as well?

@jlink
Copy link
Contributor Author

jlink commented Jul 14, 2017

Should probably be a new issue.

@marcphilipp marcphilipp removed this from the 5.0 M6 milestone Jul 18, 2017
@marcphilipp marcphilipp modified the milestones: 5.0 RC1, 5.0 M6 Jul 18, 2017
@marcphilipp marcphilipp modified the milestones: 5.0 RC1, 5.0 GA Jul 30, 2017
@sbrannen sbrannen changed the title Handle unresolvable UniqueID consistently Handle unparseable UniqueID consistently Aug 28, 2017
@sbrannen
Copy link
Member

FYI: I changed this issue's title to refer to "unparseable" unique IDs.

@sbrannen
Copy link
Member

Note that consistent parsing of unique IDs was addressed in #810.

@sbrannen
Copy link
Member

Closing this issue since it has been effectively superseded by #242 and #810.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants