forked from cleveragents/cleveragents-core
26 lines
1.1 KiB
Gherkin
26 lines
1.1 KiB
Gherkin
Feature: Main Module Coverage
|
|
Test coverage for the __main__ module entry point
|
|
|
|
Scenario: Test direct module execution
|
|
Given I have the cleveragents package installed
|
|
When I execute the module directly with python -m
|
|
Then the main entry point function should be invoked
|
|
And the CLI should handle the execution
|
|
|
|
Scenario: Test module import without execution
|
|
Given I have the cleveragents package installed
|
|
When I import the __main__ module
|
|
Then the module should load successfully
|
|
But the main function should not be invoked on import
|
|
|
|
Scenario: Test main module with command line arguments
|
|
Given I have the cleveragents package installed
|
|
When I execute the module with "--version" argument
|
|
Then the version information should be displayed
|
|
And the program should exit successfully
|
|
|
|
Scenario: Test main module with help argument
|
|
Given I have the cleveragents package installed
|
|
When I execute the module with "--help" argument
|
|
Then the help information should be displayed
|
|
And all available commands should be listed |