Modernized build tooling
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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
|
||||
Reference in New Issue
Block a user