Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8648039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:13:16+00:00 2026-06-12T13:13:16+00:00

I am trying to set the name option for Cucumber to be able to

  • 0

I am trying to set the “name” option for Cucumber to be able to run a specific feature or scenario.

I have entered this,

mvn test -DCucumber.Options--name="MyFeatureName"

but it just runs all the features and doesn’t give an error.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:13:18+00:00Added an answer on June 12, 2026 at 1:13 pm

    Here is a snippet from the Cucumber-JVM repo on how to run the java-helloworld example by passing cucumber options:

    mvn test -Dcucumber.options="--format json-pretty --glue classpath:cucumber/examples/java/helloworld src/test/resources"
    

    Keep in mind that it will override all the options in the @Cucumber.Options annotation you have on “RunCukesTest”. I haven’t got it to work for my own tests but maybe this will help.

    So it looks like you need to give all the options needed to run cucumber, including the java class path and where the code is located using the “–glue” parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this possible in javascript? I'm trying to set the property name of an
I'm trying to set key name in a hash to a string containig /
I'm trying to set the style name of the div of the split between
I'm trying to set the site name/logo and the navigation on my page so
I am trying to set the database name as the request input parameter from
Im trying to set the certificate friendly name during the certificate request/acceptance process. I
I am trying to dynamically set a resource string. The name of the resource
I am trying to set up my Visual Studio projects. I have a generic
Using JQuery, I'm trying to set an option as selected in a 'select' element
I'm trying to implement what this answer suggests but without storing the display name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.