You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Is it Friday yet?Everybody wants to know when it's Friday
Scenario: Sunday isn't FridayGiven today is SundayWhen I ask whether it's Friday yetThen I should be told "Nope"
This is Stepdefs.java:
package hellocucumber;
import io.cucumber.java.en.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
class IsItFriday {static String isItFriday(String today)
{return null;}
}
public class Stepdefs {private String today;private String actualAnswer;
@Given("today is Sunday")
public void today_is_Sunday() {
today = "Sunday";
}
@When("I ask whether it's Friday yet")
public void i_ask_whether_it_s_Friday_yet() {
actualAnswer = IsItFriday.isItFriday(today);
}
@Then("I should be told {string}")
public void i_should_be_told(String expectedAnswer) {
assertEquals(expectedAnswer, actualAnswer);
}
}
And this is the RunCucumberTest.java:
@Suite @IncludeEngines("cucumber")
@SelectPackages("hellocucumber")
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
public class RunCucumberTest {
}
When I run mvn test I cant see how many Scenarios and steps I have and how many passed and failed.
📚 Any additional context?
No response
The text was updated successfully, but these errors were encountered:
Ah. Looks like a use case was missed when I made Cucumber quieter by default. Thanks for pointing that out!
For now, you can use the summary plugin to print the summary of executed steps and scenarios. That should make the output mostly as expected. You would use it by changing the @ConfigurationParameter annotation to:
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty, summary")
👓 What did you see?
I am following the 10-minute tutorial.
According to the tutorial, I should see:
But I am seeing:
I can't see how many Scenarios and steps I have and how many passed and failed.
✅ What did you expect to see?
I can't see how many Scenarios and steps I have and how many passed and failed.
📦 Which tool/library version are you using?
node v20.14.0
JUnit 5
🔬 How could we reproduce it?
I have this pom:
This is is_it_friday_yet.feature:
This is Stepdefs.java:
And this is the RunCucumberTest.java:
When I run mvn test I cant see how many Scenarios and steps I have and how many passed and failed.
📚 Any additional context?
No response
The text was updated successfully, but these errors were encountered: