Giter Site home page Giter Site logo

Add FAQ about docs HOT 16 CLOSED

cucumber avatar cucumber commented on August 15, 2024
Add FAQ

from docs.

Comments (16)

aslakhellesoy avatar aslakhellesoy commented on August 15, 2024 2

Yes!!! I've felt guilty about bot having one for years so starting one would be great. Best way to handle recurring questions on ML.

from docs.

aslakhellesoy avatar aslakhellesoy commented on August 15, 2024
  • cucumber and excel (don't, explain why)

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024
  • skipping steps (don't, explain why)

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024
  • issues with runners / how to run

from docs.

plaindocs avatar plaindocs commented on August 15, 2024

If at all possible, I've a strong preference for first finding the right place for that info to live, and then linking to it in the form of an FAQ.

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

@plaindocs Yes, I agree. However, sometimes people don't find the documentation; it might be helpful to have a list of common problems...

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Additional FAQ (which should -also- be clarified in the docs):

  • Getting 'undefined steps' because glue is not found (where does it look for the glue by default, how to set where to find the glue) - so many StackOverflow questions...
  • Running though CLI (how to) - see:

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Input for "Cucumber can't find my glue" (from @brasmusson on Slack): Cucumber-JVM will search for step definitions in the packages you told it to look in. Either you put your step definitions files in the default package where Cucumber-JVM searches, that is the package (or sub-packages) of the runner class - in your case the package com.Create_Customer_API, or you tell Cucumber-JVM explicitly which packages (which includes the sub-packages) to search with the glue = {"<package>", "<package>", "<etc>"} in the @CucumberOptions annotation - in your case glue = {"Create_Customer_API"}

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

How to share state between steps: in JVM, use DI (needs more documentation anyway). Link to list of supported DI framework (currently here: https://cucumber.io/docs/reference/java-di). If your project already uses any of these framework (or you are familiar with one of them), it's easiest to use that. If you don't already use one, Picocontainer is the most light weight version you can use.
There's a little information in the Cucumber for Java book.

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

ANSI color thingy: cucumber/cucumber-java-skeleton#18

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Details in scenarios: http://dhemery.com/pdf/writing_maintainable_automated_acceptance_tests.pdf

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

From @mattwynne :
"Iā€™m teaching a class today, and Iā€™m getting questions where Iā€™m struggling to find docs to point people to with the answers:

  1. how does Cucumber-JVM go about searching for glue code, by default?
  2. what are the configuration parameters you can pass to your RunCukesTest JUnit bridge? e.g. glue, plugin etc.
  3. how do you use java 8 lambdas for defining steps"

From @brasmusson
"

  1. Cucumber-JVM use the package of the runner class as default (when using the command line runner, there is not default)
  2. See https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/cucumber/api/CucumberOptions.java
  3. See https://github.com/cucumber/cucumber-jvm/blob/master/examples/java8-calculator/src/test/java/cucumber/examples/java/calculator/RpnCalculatorStepdefs.java
    "

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Clarify Cucumber expressions vs Regex, see: cucumber/common#515

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

https://foreach.atlassian.net/wiki/spaces/CWB/blog/2015/07/02/9404422/Quick-fix+for+issues+with+IntelliJ+14.1.3+

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/transaction/TransactionDefinition.

The cause is incorrect detection of the Glue property, for some reason the package cucumber.api.spring is added incorrectly.

only cucumber.api.spring is added to glue
"regular" glue not added by default, need to add manually.

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Added a FAQ page, with most but not all FAQ mentioned here. Maybe create a new issue with pending FAQ?

from docs.

mlvandijk avatar mlvandijk commented on August 15, 2024

Questions about dynamic data (don't; tests should be deterministic).

from docs.

Related Issues (20)

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.