39 lines
1.1 KiB
Gherkin
39 lines
1.1 KiB
Gherkin
Feature: Command-line greeting interface
|
|
As a user of the boilerplate CLI
|
|
I want to be greeted properly
|
|
So that I can verify the application works
|
|
|
|
Background:
|
|
Given the CLI is available
|
|
|
|
Scenario: Default greeting
|
|
When I run "python -m boilerplate"
|
|
Then the exit code should be 0
|
|
And the output should contain "Hello, World!"
|
|
|
|
Scenario: Custom name greeting
|
|
When I run "python -m boilerplate --name Alice"
|
|
Then the exit code should be 0
|
|
And the output should contain "Hello, Alice!"
|
|
|
|
Scenario: Multiple greetings
|
|
When I run "python -m boilerplate --count 3"
|
|
Then the exit code should be 0
|
|
And the output should contain "Hello, World!" 3 times
|
|
|
|
Scenario Outline: Greeting various names
|
|
When I run "python -m boilerplate --name <name>"
|
|
Then the exit code should be 0
|
|
And the output should contain "Hello, <name>!"
|
|
|
|
Examples:
|
|
| name |
|
|
| Bob |
|
|
| Charlie |
|
|
| 世界 |
|
|
| 🎉 |
|
|
|
|
@hypothesis
|
|
Scenario: Fuzz test greeting names
|
|
When I fuzz test the CLI with random names
|
|
Then all invocations should succeed |