Code Monkey home page Code Monkey logo

Comments (5)

asolntsev avatar asolntsev commented on August 19, 2024

from cucumber.

vrajasg avatar vrajasg commented on August 19, 2024

@asolntsev thanks for the response, much appreciated.

Seems for some reason text reports are not generated when configured with Cucumber.

So I took a step back and checked out Selenide examples: Cucumber project and even that didn't generate text reports. I see that project is already configured to generate a report (jUnit @rule & slf4j-simple) as per report doc.

Here is the console output from my run, not sure what am missing here to see text report.

Screenshot 2021-10-14 at 16 50 42

Steps followed:

  • In Intellij
  • Check out Selenide examples: Cucumber
  • Added dependency 'org.slf4j:slf4j-log4j12:1.7.32'.
  • Downloaded dependencies
  • Run mvn

Note: Also tried below

  • By adding cucumber.iml
  • Explicitly setting onFailedTest && onSucceededTest to true in @before hook of Cucumber.

from cucumber.

vrajasg avatar vrajasg commented on August 19, 2024

@asolntsev further to my previous comment, When I went ahead and added a sample TestNg test in my Cucumber-TestNg project then I see text report in console, as you can see in the screenshot.

However, unfortunately, the same doesn't seem to work with Cucumber combination.

Please let me know if it's something that can be looked at?

TestNg

Thanks !!!

from cucumber.

asolntsev avatar asolntsev commented on August 19, 2024

@vrajasg According to cucumber/cucumber-jvm#393, Cucumber doesn't support JUnit annotatation @Rule. We cannot fix it in Selenide. :(

from cucumber.

asolntsev avatar asolntsev commented on August 19, 2024

@vrajasg I have update the example project with an Cucumber-specific implementation of TextReport. Now it works with JUnit4 too.

from cucumber.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.