Comments (12)
worked! thanks @roskee
from godog.
@gabrielcartellivia can we close this issue?
from godog.
Hello @sumusjack, you can define where features/steps definitions are located. Take this example as reference https://github.com/cucumber/godog/blob/main/_examples/assert-godogs/godogs_test.go.
In contexts initialization you can define the function where all scenario contexts are defined.
And in options you can set the Paths property with your features' paths.
By doing so you can centralize your tests in one place and when you run go test
in your project the BDD tests will run as well
from godog.
Hello @gnoe. Can I define where the tests files are located?
E.g.:
features
|__ godog.feature
services
|__ godog_test.go
from godog.
Yes. As @gnoe has said, you can specify the path of your feature file godog.feature
within your test godog_test.go
using the Paths
field.
from godog.
This isn't working. What am i doing wrong?
from godog.
add the file names to the paths list.
...
Paths: []string{"../features/users.feature"}
...
from godog.
add the file names to the paths list.
... Paths: []string{"../features/users.feature"} ...
didn't work
from godog.
What is the command you executed?
from godog.
Just godog run
from godog.
run go test
inside the services
directory.
from godog.
Thank you @roskee for replying and sorry @gabrielcartellivia for didn’t reply on time.
I'm glad that it worked!
from godog.
Related Issues (20)
- click on run tests but tests are not running HOT 1
- Please update the concurrency paragraph in the docs to clarify if scenario outlines run in parallel or only the scenarios HOT 1
- Is this feature file in godog/_examples/godogs running sequencially ? HOT 2
- Why Getting total scenarios as 6 while I am having total 5 scenarios HOT 3
- Skipping a test by returning `godog.ErrSkip` does not work? HOT 6
- print error stack when panic
- step function support return a nil Context with error HOT 1
- Conflict between global flags set by godog.BindCommandLineFlags and spf13/cobra HOT 2
- HELP: I want to know the index of a scenario in a scenario outline in the before scenario hook.
- Can't navigate to step definition from Gherkin step
- Unexpected step line values in cucumber report generated by Godog for scenario outlines
- ReadMe add step `go get ...` see provided patch to fix it
- Tag Filtering Expressions HOT 2
- Calculated step duration is wrong HOT 3
- Support for attachments / embeddings as per Cucumber and Behave HOT 9
- Slack registration token_revoked error HOT 2
- Broken link in „help wanted” issue HOT 1
- MacOS arm64 package
- runAfterStepHooks should allow the user to replace an error with a nil or another error
- godog should report failure if ambiguous matching steps are found HOT 5
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 godog.