• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cucumber / cucumber-jvm / 3800
86%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2020 10:26PM UTC
Jobs 1
Files 356
Run time 48s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3800

push

travis-ci

web-flow
[Core] CLI should search classpath root by default (#1889)

The Cucumber CLI is rather complex to use. To work correctly it needs both
a `--glue` parameter in the form of a package name and a location of a feature
file in form of a classpath uri or path. As a result people often configure
Cucumber incorrectly and are left wondering why their features or glue can not
be found.

This can be simplified as shown by the Cucumber Platform Engine which defaults
to the classpath root and the JUnit and TestNG runners which default to the
package of the runner class.

So it makes sense to do the same with the CLI.

Assuming the following project layout the CLI can discover and execute
all features without needing additional arguments.

```
├── pom.xml
├── src
│   ├── main
│   │   └── java
│   │       └── com/example/Application.java
│   └── test
│       ├── java
│       │   └── com/example/StepDefinitions.java
│       └── resources
│           └── com/example/example.feature
```

This can be done with a single maven command:

```
mvn exec:java                                  \
    -Dexec.classpathScope=test                 \
    -Dexec.mainClass=io.cucumber.core.cli.Main
```

Additional benefits can be found in the fact that IDEA often can't work out
which package should be used as glue and does not provide a default. The
Cucumber Eclipse plugin on the other hand always defaults to the class path
root.

Fixes: https://github.com/cucumber/cucumber-jvm/issues/1875

16 of 16 new or added lines in 3 files covered. (100.0%)

6327 of 7625 relevant lines covered (82.98%)

0.83 hits per line

Jobs
ID Job ID Ran Files Coverage
3 3800.3 (COVERAGE=true) 06 Feb 2020 10:26PM UTC 0
82.98
Travis Job 3800.3
Source Files on build 3800
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3800
  • 02c69722 on github
  • Prev Build on master (#3799)
  • Next Build on master (#3801)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc