forked from cleveragents/cleveragents-core
55 lines
2.3 KiB
Gherkin
55 lines
2.3 KiB
Gherkin
Feature: Complexity check configuration
|
|
As a QA developer
|
|
I want to verify that radon complexity checking is properly configured
|
|
So that overly complex code is detected before merging
|
|
|
|
Scenario: Radon is listed as a project dev dependency
|
|
Given the pyproject.toml exists
|
|
When I parse the dev dependencies from pyproject.toml
|
|
Then "radon" should be in the dev dependencies
|
|
|
|
Scenario: Complexity nox session exists in noxfile
|
|
Given the noxfile.py exists
|
|
When I parse the nox session names from noxfile.py
|
|
Then "complexity" should be a registered nox session
|
|
|
|
Scenario: Complexity session runs radon cc command
|
|
Given the noxfile.py exists
|
|
When I read the complexity session source from noxfile.py
|
|
Then the complexity session should invoke radon cc
|
|
|
|
Scenario: Complexity session targets src/cleveragents
|
|
Given the noxfile.py exists
|
|
When I read the complexity session source from noxfile.py
|
|
Then the complexity session should target src/cleveragents
|
|
|
|
Scenario: Complexity session exports JSON report
|
|
Given the noxfile.py exists
|
|
When I read the complexity session source from noxfile.py
|
|
Then the complexity session should export JSON to build directory
|
|
|
|
Scenario: Complexity fail grade is defined in noxfile
|
|
Given the noxfile.py exists
|
|
When I parse the COMPLEXITY_FAIL_GRADE constant from noxfile.py
|
|
Then the complexity fail grade should be "F"
|
|
|
|
Scenario: Complexity session emits CI-parseable summary on success
|
|
Given the noxfile.py exists
|
|
When I read the complexity session source from noxfile.py
|
|
Then the complexity session should emit a COMPLEXITY OK summary line
|
|
|
|
Scenario: Complexity session emits CI-parseable summary on failure
|
|
Given the noxfile.py exists
|
|
When I read the complexity session source from noxfile.py
|
|
Then the complexity session should emit a COMPLEXITY FAILED summary line
|
|
|
|
Scenario: CI workflow quality job runs nox complexity session
|
|
Given the CI workflow file exists
|
|
When I parse the quality job from the CI workflow
|
|
Then the quality job should run nox -s complexity
|
|
|
|
Scenario: CI workflow quality job uploads complexity artifacts
|
|
Given the CI workflow file exists
|
|
When I parse the quality job from the CI workflow
|
|
Then the quality job should upload complexity artifacts
|