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

How to integrate with Sputnik runner? #17

Open
Kanti1702 opened this issue Feb 13, 2020 · 1 comment
Open

How to integrate with Sputnik runner? #17

Kanti1702 opened this issue Feb 13, 2020 · 1 comment
Labels

Comments

@Kanti1702
Copy link

Kanti1702 commented Feb 13, 2020

I want to integrate this with Spock and we are not using any runner explicitly.

We have 500+ Spec classes and we are not using @RunWith explicitly.

How to integrate Junit4Git when we are not using @RunWith? or How to integrate it for Spock?

Does it works only on master branch?
As we are following git flow, and we want to run this on any feature branch or develop branch.

@Kanti1702 Kanti1702 changed the title Integrate with Spock How to integrate with Sputnik runner? Feb 14, 2020
@rpau
Copy link
Owner

rpau commented Dec 27, 2020

How to integrate Junit4Git when we are not using @RunWith?

It depends. If you are running it with Maven, you can rely on the listener that is configured in the pom.xml file. If you are running your build with gradle, you need to manually add those @RunWith annotations or create a code transformation with walkmod for that. The reason is that the junit gradle module does not allow (or did not allow) to configure listeners and thus, this is what the runner is doing.

How to integrate it for Spock?

This should not be any problem if Spock is based on JUnit4. At the end everything is translated at bytecode.

Does it works only on master branch?

Yes, but happy to receive contributions to make it configurable. (#5)

By the way, sorry for the delayed response.

@rpau rpau added the question label Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants