Comments (10)
What version are you using?
Can you prepare a Minimal, Complete, and Verifiable example in a git repo please?
from cucumber-java-skeleton.
Well, bad for me I cant reach git repo from my work place.
But I assure you all I did was just download this https://github.com/cucumber/cucumber-java-skeleton/ in zip file and open it and tried running tests
from cucumber-java-skeleton.
Please disregard my last comment. Can you tell us what OS you’re on and what Java version you’re using?
from cucumber-java-skeleton.
Windows 7 Enterprise Service Pack 1 and Java 1.8.0_121
from cucumber-java-skeleton.
Change your OS language to English and try again.
from cucumber-java-skeleton.
It works perfectly, thanks @onurozcelik
from cucumber-java-skeleton.
I'm reopening this - there should be a better error message.
from cucumber-java-skeleton.
I can't make sense of the error.
java.lang.NullPointerException: No format for key undefıned
at cucumber.runtime.formatter.AnsiFormats.get(AnsiFormats.java:51)
It's right there!
private static final Map<String, Format> formats = new HashMap<String, Format>() {{
put("undefined", new ColorFormat(AnsiEscapes.YELLOW));
....
}};
Much less of how the OS language influences this.
from cucumber-java-skeleton.
Ah found it. It's in PrettyFormatter
String formattedStepText = formatStepText(keyword, stepText, formats.get(result.getStatus().lowerCaseN11ame()), formats.get(result.getStatus().lowerCaseName() + "_arg"), testStep.getDefinitionArgument());
Which calls Result
:
public String lowerCaseName() {
return name().toLowerCase();
}
Which calls String
public String toLowerCase() {
return toLowerCase(Locale.getDefault());
}
Which uses a Locale
which notes:
* Converts all of the characters in this {@code String} to lower
* case using the rules of the default locale. This is equivalent to calling
* {@code toLowerCase(Locale.getDefault())}.
* <p>
* <b>Note:</b> This method is locale sensitive, and may produce unexpected
* results if used for strings that are intended to be interpreted locale
* independently.
* Examples are programming language identifiers, protocol keys, and HTML
* tags.
* For instance, {@code "TITLE".toLowerCase()} in a Turkish locale
* returns {@code "t\u005Cu0131tle"}, where '\u005Cu0131' is the
* LATIN SMALL LETTER DOTLESS I character.
* To obtain correct results for locale insensitive strings, use
* {@code toLowerCase(Locale.ROOT)}.
* <p>
from cucumber-java-skeleton.
Nice one @mpkorstanje!
from cucumber-java-skeleton.
Related Issues (20)
- download and run gradle build fail HOT 5
- different branches for gradle / maven? HOT 2
- Runs fine in gradle; loses step definitions in IntelliJ HOT 3
- gradle version does not work HOT 1
- Upgrade Java Skeleton to V5
- Person class doesn't exist HOT 2
- Help with this Cucumber Scenario?? HOT 7
- How to disable cucumber message in eclipse HOT 1
- Help with this Cucumber Scenario??
- mvn test BUILD SUCCESS instead of FAILURE after adding TestNG HOT 1
- Action Required: Fix Renovate Configuration
- WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main HOT 13
- Help Needed: Cucumber Test with Spring Boot from Executable Jar HOT 1
- Dependency Dashboard
- Failed gradle test task from the skeleton project. HOT 4
- Cucumber multiple tags not supported for the version 7.9.0 using Junit runner HOT 1
- UndefinedStepException HOT 2
- StepDefinitions should have at least one assert to call it as BDD test HOT 2
- `Step undifined` for demo project
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 cucumber-java-skeleton.