This pull request introduces several significant changes to the testing framework and configuration, including the addition of Cypress support, refactoring of configuration handling, and updates to the CI workflow.
Testing Framework Enhancements:
Added support for Cypress testing framework, including scaffolding functions and necessary configurations (src/agent/scaffold.py, src/agent/cli/start.py, config.toml). [1][2][3]
Refactored the test_name function to include Cypress-specific test templates and removed unsupported configurations (src/agent/completions.py). [1][2]
Configuration Refactoring:
Introduced a new get_test_dir function to dynamically determine the test directory based on the framework, replacing the static TEST_DIR variable (src/agent/config.py, src/agent/cli/init.py, src/agent/cli/start.py). [1][2][3]
Updated config.toml to switch from TypeScript with Playwright to JavaScript with Cypress (config.toml).
Continuous Integration (CI) Improvements:
Added a new GitHub Actions workflow for testing across multiple Python versions (.github/workflows/test.yaml).
Codebase Simplification:
Removed redundant methods related to Playwright setup and moved them to a new scaffold module (src/agent/runtime.py, src/agent/scaffold.py). [1][2]
VSCode Configuration:
Updated VSCode settings to enable pytest and configure test arguments (.vscode/settings.json).
This pull request introduces several significant changes to the testing framework and configuration, including the addition of Cypress support, refactoring of configuration handling, and updates to the CI workflow.
Testing Framework Enhancements:
src/agent/scaffold.py
,src/agent/cli/start.py
,config.toml
). [1] [2] [3]test_name
function to include Cypress-specific test templates and removed unsupported configurations (src/agent/completions.py
). [1] [2]Configuration Refactoring:
get_test_dir
function to dynamically determine the test directory based on the framework, replacing the staticTEST_DIR
variable (src/agent/config.py
,src/agent/cli/init.py
,src/agent/cli/start.py
). [1] [2] [3]config.toml
to switch from TypeScript with Playwright to JavaScript with Cypress (config.toml
).Continuous Integration (CI) Improvements:
.github/workflows/test.yaml
).Codebase Simplification:
src/agent/runtime.py
,src/agent/scaffold.py
). [1] [2]VSCode Configuration:
.vscode/settings.json
).