33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke test validating that nox sessions referenced in CI exist and can be listed
|
|
Library Process
|
|
Library OperatingSystem
|
|
|
|
*** Test Cases ***
|
|
Nox Lists All Required Sessions
|
|
[Documentation] Verify that nox can list sessions and the required CI sessions are present
|
|
[Tags] ci quality slow
|
|
${result}= Run Process nox --list
|
|
Should Be Equal As Integers ${result.rc} 0 msg=nox --list failed with: ${result.stderr}
|
|
# Verify required sessions exist in nox output
|
|
Should Contain ${result.stdout} lint
|
|
Should Contain ${result.stdout} typecheck
|
|
Should Contain ${result.stdout} unit_tests
|
|
Should Contain ${result.stdout} integration_tests
|
|
Should Contain ${result.stdout} coverage_report
|
|
Should Contain ${result.stdout} security_scan
|
|
Should Contain ${result.stdout} dead_code
|
|
Should Contain ${result.stdout} complexity
|
|
Should Contain ${result.stdout} build
|
|
|
|
CI Workflow File Exists
|
|
[Documentation] Verify the CI workflow file is present in the repository
|
|
[Tags] ci quality slow
|
|
File Should Exist .forgejo/workflows/ci.yml
|
|
|
|
Nox Lint Session Runs Successfully
|
|
[Documentation] Verify that nox lint session can be invoked
|
|
[Tags] ci quality slow
|
|
${result}= Run Process nox -s lint timeout=120s
|
|
Should Be Equal As Integers ${result.rc} 0 msg=nox -s lint failed: ${result.stderr}
|