Comments (2)
Can you describe the way you'd like to use Behave to test the CLI behavior of your application?
It really depends on that. Behave is just a test runner. How you implement your tests is a different story.
For example, you may want to take a look at cli-test-helpers for ready-to-use test setups if you're fine to run unit tests. You can use the ideas to test a CLI from there too, and use (nearly) the same test code in your step implementations, if you prefer to stick to Behave.
from behave.
- Have you looked at
behave4cmd0
and its step-library (bundled withbehave
) ? - There are some similar
behave
step-libraries for command-process on https://pypi.org/ (AFAIK).
HINT: Just search forbehave
.
SEE ALSO:
- Bundled
behave4cmd0
: https://github.com/behave/behave/blob/main/behave4cmd0/
HINT: Look at*_steps.py
Python modules for step-library functionality. behave4cmd0
in own repo (WIP): https://github.com/behave/behave4cmd0
NOTE: There may be some setup steps need to be able to use it (setup where the root-directory is).
NOTES:
- Questions are normally asked under
discussions
and not underissues
.
from behave.
Related Issues (20)
- [feature] Add support for the "Rule" keyword HOT 1
- Config-files are not shown in verbose mode HOT 1
- step status do not permit "executing" HOT 5
- Why behave doesn't allow to define steps with duplicated descriptions? HOT 2
- ParseMatcher failing on steps with type annotations. HOT 2
- Docs: User step should be When HOT 1
- Not able to access my Behave configuration values. HOT 2
- Support 'AND' after 'BACKGROUND' HOT 2
- question: how to mark a step as failed in `after_step()`, or scenario as failed in `after_scenario()`? HOT 1
- Add type information for `mypy` and type hints? HOT 4
- Question: Is there a way to properly set result for behave run? HOT 2
- TagExpression auto-detection is not working properly HOT 2
- Behave seems to Ignore `pyproject.toml` (in working directory) HOT 1
- vscode cucumber-language-sever: Quoted parameters in steps cause undefined-step in editor HOT 1
- PDF link in README.rst returns a 404 error HOT 1
- Bad type-converter pattern: MatchWithError is turned into AmbiguousStep HOT 3
- behave output with timestamp HOT 2
- Exception in test code during before_scenario causes exception in scenario.py HOT 3
- Negative time execution bug possible with use of freeze_time HOT 2
- How to add a formatter dynamically from environment.py
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 behave.