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

Execute cucumber test from custom module #38

Open
deepakattarde-mcd opened this issue Apr 5, 2022 · 2 comments
Open

Execute cucumber test from custom module #38

deepakattarde-mcd opened this issue Apr 5, 2022 · 2 comments

Comments

@deepakattarde-mcd
Copy link

Hi,

I am trying to execute cucumber test from custom/another module than test however facing issue.

java.lang.IllegalStateException: Unable to locate CDIProvider
	at javax.enterprise.inject.spi.CDI.findAllProviders(CDI.java:121)
	at javax.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:82)
	at javax.enterprise.inject.spi.CDI.current(CDI.java:64)
	at io.quarkiverse.cucumber.CucumberQuarkusTest$CdiObjectFactory.getInstance(CucumberQuarkusTest.java:184)

Not sure how to provide CDI to custom module. Any help on this would be appreciated.

I am able to execute cucumber test from test module however I want to separate it from JUnits.

Sample code:
demo.zip

I am trying to execute cucumber test (health endpoint) against a running instance.

image

@deepakattarde-mcd
Copy link
Author

@stuartwdouglas, Would you be able to provide help on this?

@ozkanpakdil
Copy link

Hi, the problem is not about quarkus-cucumber but gradle :) check the file
code-with-quarkus.tar.gz

and here how it looks
image

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

No branches or pull requests

2 participants