serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

To run test suite from a java main method in src/main/java #232

Open contactkrsna1 opened 4 years ago

contactkrsna1 commented 4 years ago

Hi I am using serenity with cucumber. My test suite is in src/test/resources and from a java method inside src/main/java . can i run the test suite src/main/java package testrunner; class MyTestRunner { public static void main(String[] args) { // here i have to execute my TestSuite } } } This should have the same effect of running mvn verify and generate reports.

Thanks in adance.

wakaleo commented 4 years ago

Not easily, no.

waynesinclair-rsa commented 3 years ago

Hi,

Did you perhaps find a solution for this issue. I am having the same problem.'=

Thanks

wakaleo commented 3 years ago

It's just not what you normally do. What problem are you trying to solve?

waynesinclair-rsa commented 3 years ago

I have applied for a test automation job, and they have given me an exercise to do. I have to package the tests and forward to them in such a way that they can instantly see them running.

From: "John Ferguson Smart" notifications@github.com To: "serenity-bdd/serenity-cucumber" serenity-cucumber@noreply.github.com Cc: "waynesinclair-rsa" wsi@netactive.co.za, "Comment" comment@noreply.github.com Sent: Sunday, January 24, 2021 7:23:20 PM Subject: Re: [serenity-bdd/serenity-cucumber] To run test suite from a java main method in src/main/java (#232)

It's just not what you normally do. What problem are you trying to solve?

— You are receiving this because you commented. Reply to this email directly, [ https://github.com/serenity-bdd/serenity-cucumber/issues/232#issuecomment-766398065 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AJDHDRIRMDRLDV6B2SK67FLS3RJQRANCNFSM4NHQQCCQ | unsubscribe ] .

SDeo1 commented 3 years ago

Did anyone have any luck on how to achieve this so far?

wakaleo commented 3 years ago

This is not how Serenity works.