24 lines
853 B
Gherkin
24 lines
853 B
Gherkin
Feature: Main Module Entry Point
|
|
As a developer
|
|
I want to test the __main__ module entry point
|
|
So that I ensure proper application startup
|
|
|
|
Scenario: Run function returns success code
|
|
Given the CLI main function will return 0
|
|
When I call the run function
|
|
Then the run function should return 0
|
|
|
|
Scenario: Run function returns error code
|
|
Given the CLI main function will return 1
|
|
When I call the run function
|
|
Then the run function should return 1
|
|
|
|
Scenario: Run function handles exceptions
|
|
Given the CLI main function will raise an exception
|
|
When I call the run function expecting an exception
|
|
Then an exception should be raised
|
|
|
|
Scenario: Module has required attributes
|
|
When I import the __main__ module
|
|
Then the module should have a "run" attribute
|
|
And the "run" attribute should be callable |