Comments (11)
@grandmaximum thanks for reporting! Fixed the tag filtering support in #8
from quarkus-cucumber.
Here you go: #9
Might take a bit to get into central.
from quarkus-cucumber.
@grandmaximum the issue regarding RestAssured seems to be different. Could you please open a separate issue for this?
About to close the initial issue regarding Runner file
then
from quarkus-cucumber.
@grandmaximum can you please have a look at #4 which was released with #5. It may help you to set custom glue, features and tags via @CucumberOptions.
let me know if this works for you
from quarkus-cucumber.
@christophd It seems like the tag feature isn't really working. Whether or not I use tags and define them in the runner file, all the tests in the specified .feature-file is still run.
EDIT:
The problem is that we don't filter the tests based on the tag expressions, which could be solved this way: quarkusio/quarkus#11045 (comment)
A bit ironic that this was the broken link in my last post.
from quarkus-cucumber.
@grandmaximum let me check. how do you define the tags in the runner file?
from quarkus-cucumber.
@RunWith(Cucumber.class)
@CucumberOptions(
monochrome = true,
features = "src/test/java/ekn/information/v/hello/Hello.feature",
glue ="ekn.information.v.hello",
tags = "@Saknar"
)
public class HelloRunnerQuarkiverse extends CucumberQuarkusTest
{
}
See my edited answer on the last post.
from quarkus-cucumber.
@stuartwdouglas When are you planning on 0.4.0? Would be awesome if I could test the tag filtering.
from quarkus-cucumber.
I ran into the same problem as mentioned in quarkusio/quarkus#10435.
When I run a steps method which uses a Restassured call I get the following error:
java.util.ServiceConfigurationError: org.apache.groovy.json.FastStringServiceFactory: org.apache.groovy.json.DefaultFastStringServiceFactory not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1236)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
at org.apache.groovy.json.internal.FastStringUtils$ServiceHolder.loadService(FastStringUtils.java:41)
at org.apache.groovy.json.internal.FastStringUtils$ServiceHolder.<clinit>(FastStringUtils.java:33)
at org.apache.groovy.json.internal.FastStringUtils.getService(FastStringUtils.java:55)
at org.apache.groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:66)
at org.apache.groovy.json.internal.CharBuf.addJsonEscapedString(CharBuf.java:341)
at org.apache.groovy.json.internal.CharBuf.addJsonEscapedString(CharBuf.java:337)
at groovy.json.JsonOutput.prettyPrint(JsonOutput.java:213)
at groovy.json.JsonOutput$prettyPrint.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at io.restassured.internal.path.json.JsonPrettifier.prettifyJson(JsonPrettifier.groovy:25)
at io.restassured.internal.path.json.JsonPrettifier$prettifyJson.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at io.restassured.internal.support.Prettifier.prettify(Prettifier.groovy:60)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
at
...
The problem occures on the first class being loaded by RestAssures classloader. Is there a possible way around this or is RestAssured simply imcompatible with dynamic tests (@testfactory) and thus quarkus-cucumber?
My RestAssured call:
responseSpara = RestAssured.given().log().all()
.contentType("application/json")
.body(userData)
.header("USERID", "TESTID")
.header("USERNAME", "TESTER")
.when()
.post("/save")
.then()
.statusCode(200)
.extract()
.response();
from quarkus-cucumber.
Hi, I try extension but i don't have any result. I have an app Quarkus. I did like here : https://github.com/quarkiverse/quarkus-cucumber/blob/main/docs/modules/ROOT/pages/index.adoc
so, i have a runner file :
`package test.it.runner;
import io.cucumber.junit.Cucumber;
import io.quarkiverse.cucumber.CucumberOptions;
import io.quarkiverse.cucumber.CucumberQuarkusTest;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(features = { "src/test/resources/test/it" }, glue = {
"test.it" }, plugin = { "pretty", "html:target/cucumber-reports/report.html",
"junit:target/cucumber-reports/junit-report.xml", "io.qameta.allure.cucumber6jvm.AllureCucumber6Jvm" })
public class RunnerCucumberIT extends CucumberQuarkusTest {
public static void main(String[] args) {
runMain(RunnerCucumberIT.class, args);
}
}
`
And I have a .feature file and a test file but when I did play to RunnerCucumberIT any test is started. And is I got mvn verify only unit test are started.
My test file for bdd - cucumber test is methods empty so, I wait errors about that but nothig is comming.
Is there any other documentation that I can follow ?
Thanks you :)
from quarkus-cucumber.
@bella-daza could you please open separate issue. Your problem seems to not be related to this one.
from quarkus-cucumber.
Related Issues (20)
- Add support for uri linking per feature and scenario HOT 3
- NoClassDefFoundError with Version 1.0.0 HOT 2
- Failure if used with quarkus-datadog-opentracing HOT 1
- Execution of multiple tests not possible due to terminated state
- Only scenarios should be considered as Tests (starting/ending cucumber and beforeFeature methods should not) HOT 1
- Add possibility to extend method CucumberQuarkusTest.getTests HOT 2
- Quarkus Continuous Testing re-runs all Features/Scenarios, although "only failed tests" is selected
- Feature request: Provide a @ScenarioScoped annotation HOT 1
- All contributors HOT 6
- Feature Request/ Question: Run tests as Integration Tests HOT 16
- Execute cucumber test from custom module HOT 2
- getTests() displayName must not be null or blank HOT 1
- Configure quarkus profile/properties in a feature file
- Alternative Beans not properly resolved
- @CucumberOptions annotation not detected when quarkus creates a _Subclass proxy
- Running cucumber scenarios in parallel? HOT 3
- How to fail a step when testing a Uni? HOT 1
- A working example of a Uni test HOT 4
- Where should I put the @BeforeAll and @AfterAll ? HOT 11
- Support for Cucumber Java 8 Lambda Definitions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus-cucumber.