-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Single JUnit class with consumer contract tests mixed with other tests? #1674
Comments
actually I was using pact 4.3.17 with my example. With 4.5.1 it still doesn't work, yet the error message is different:
|
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-810). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps. |
…s with @PactIgnore annotation #1674
I've added a |
Thank you very much for the quick work! |
Fixed in 3bb4a08 |
Hi folks! Is there a way that I can have a single JUnit class that has some
@Test
methods that use pact consumer contract tests as well as other@Test
methods that don’t? I don’t seem to be able to do that.My usecase: I have my business logic tier (a bean) that has lots of business methods. I have a single test class that has lots of tests, some of those tests don’t belong in the Pact consumer contract (i.e. error handling/failure scenarios). Something like this:
When I try to run this test class the helloVillainsFailure method fails with
The text was updated successfully, but these errors were encountered: