Skip to content

Introduce ExceptionHandler extension point #103

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
3 tasks done
marcphilipp opened this issue Jan 12, 2016 · 10 comments
Closed
3 tasks done

Introduce ExceptionHandler extension point #103

marcphilipp opened this issue Jan 12, 2016 · 10 comments
Assignees
Milestone

Comments

@marcphilipp
Copy link
Member

Proposal

interface ExceptionHandlerExtensionPoint extends ExtensionPoint {
   void handleException(TestExtensionContext context, Throwable throwable) throws Throwable;
}

Tasks

  • Implement extension point with tests and everything
  • Add example usage in documentation
  • Introduce @ExpectToFail annotation in document module to allow sample test cases to fail

related to #92.

@marcphilipp marcphilipp added this to the Alpha 1 milestone Jan 12, 2016
@jlink jlink self-assigned this Jan 21, 2016
@jlink
Copy link
Contributor

jlink commented Jan 21, 2016

I'm working on it.

@sbrannen
Copy link
Member

Cool. Looking forward to having this feature in place!

@sbrannen
Copy link
Member

By the way, why not just call it ExceptionHandler?

I don't see the need to name all extension APIs *ExtensionPoint.

@sbrannen
Copy link
Member

Plus, the Position won't make sense with such an ExceptionHandler: it can only be used during an after phase, which could be ordered, but there is no such concept as wrapping for a feature like this.

This of course ties in with the discussion of Position in general which we are discussing in #112.

@jlink
Copy link
Contributor

jlink commented Jan 21, 2016

IMO, position makes also sense here since an exception handler can be
closer or further away from the test method itself.

2016-01-21 13:42 GMT+01:00 Sam Brannen notifications@github.com:

Plus, the Position won't make sense with such an ExceptionHandler: it can
only be used during an after phase, which could be ordered, but there
is no such concept as wrapping for a feature like this.

This of course ties in with the discussion of Position in general which
we are discussing in #112
#112.


Reply to this email directly or view it on GitHub
#103 (comment).

@jlink
Copy link
Contributor

jlink commented Jan 21, 2016

I'm not sure. ExceptionHandler sounds way more generic than it actually is.
Does *ExtensionPoint hurt?

2016-01-21 13:39 GMT+01:00 Sam Brannen notifications@github.com:

By the way, why not just call it ExceptionHandler?

I don't see the need to name all extension APIs *ExtensionPoint.


Reply to this email directly or view it on GitHub
#103 (comment).

@sbrannen
Copy link
Member

IMO, position makes also sense here since an exception handler can be closer or further away from the test method itself.

Yes, that's what I meant by ordering. Ordering certainly makes sense, but wrapping does not. In any case, let's address this topic in #112.

@sbrannen
Copy link
Member

Does *ExtensionPoint hurt?

I just question our use of *ExtensionPoint in general. I'm not convinced that we need the concept of an "extension point" beyond the basic concept of an "extension".

@jlink
Copy link
Contributor

jlink commented Jan 21, 2016

Is it the same discussion we had last week or any other/new points?

Extension and ExtensionPoint have different semantics in my book. But
we have been through this argument before...

2016-01-21 15:31 GMT+01:00 Sam Brannen notifications@github.com:

Does *ExtensionPoint hurt?

I just question our use of *ExtensionPoint in general. I'm not convinced
that we need the concept of an "extension point" beyond the basic concept
of an "extension".


Reply to this email directly or view it on GitHub
#103 (comment).

@jlink
Copy link
Contributor

jlink commented Jan 26, 2016

Done with #0684c9c

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