Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Serenity tests do not start with maven #14

Closed
BartVanRaemdonck opened this issue Sep 23, 2019 · 4 comments
Closed

Serenity tests do not start with maven #14

BartVanRaemdonck opened this issue Sep 23, 2019 · 4 comments

Comments

@BartVanRaemdonck
Copy link

When I run my tests with maven (I deleted all the Gradle stuff).
I get this output in the console:

[INFO] 
[INFO] --------< net.persgroep.targetqa:serenity-cucumber4-smoketests >--------
[INFO] Building Sample Serenity BDD project using Cucumber 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ serenity-cucumber4-smoketests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/bvanraemdonck/workspace/serenity-cucumber-target-maven/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ serenity-cucumber4-smoketests ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ serenity-cucumber4-smoketests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 17 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ serenity-cucumber4-smoketests ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ serenity-cucumber4-smoketests ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ serenity-cucumber4-smoketests ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/bvanraemdonck/workspace/serenity-cucumber-target-maven/target/serenity-cucumber4-smoketests-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.1:integration-test (default) @ serenity-cucumber4-smoketests ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- serenity-maven-plugin:2.0.70:aggregate (serenity-reports) @ serenity-cucumber4-smoketests ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/Users/bvanraemdonck/.m2/repository/com/google/inject/guice/4.2.2/guice-4.2.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] current_project.base.dir: /Users/bvanraemdonck/workspace/serenity-cucumber-target-maven
[INFO] Generating test results for 0 tests
[INFO] Loading requirements from tag providers :[net.thucydides.core.requirements.FileSystemRequirementsTagProvider@71f056a, net.thucydides.core.requirements.PackageRequirementsTagProvider@5521407f]
[INFO] LOADED REQUIREMENTS:
REQUIREMENTS:
    - feature : Research things on the web {id: research-things-on-the-web, displayName: 'Research things on the web', path: 0research_things_on_the_web.feature, parent: 'null'}
    - feature : As a advertising business I want to be able to sell targeted advertising {id: as-a-advertising-business-i-want-to-be-able-to-sell-targeted-advertising, displayName: 'As a advertising business I want to be able to sell targeted advertising', path: send_cxense_segments_to_DFP.feature, parent: 'null'}
[INFO] 2 requirements loaded after 184 ms
[INFO] 0 related requirements found after 186 ms
[INFO] Generating test outcome reports: false
[INFO] Starting generating reports after 242 ms
[INFO] Configured report threads: 40
[INFO] Test results for 0 tests generated in 881 ms
[INFO] 
[INFO] --- maven-failsafe-plugin:2.22.1:verify (default) @ serenity-cucumber4-smoketests ---
```

So its getting my requirements from my feature files.
But it doesn't start the Serenity tests with a webdriver.

I have the same POM als in the example.
@wakaleo
Copy link
Member

wakaleo commented Sep 23, 2019

I can’t reproduce this. What version of Maven?

@BartVanRaemdonck
Copy link
Author

BartVanRaemdonck commented Sep 23, 2019

My bad, I had a JUnit5 dependency in my POM file. Once I deleted this, it works.
Is this not supported?

@wakaleo
Copy link
Member

wakaleo commented Sep 23, 2019

No, JUnit 5 is a totally different architecture. We haven’t written the integration yet.

@BartVanRaemdonck
Copy link
Author

Ok, thank you for the answer.

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

No branches or pull requests

2 participants