This project's test suite is written using the pytest framework and includes the following test files:
test_plugin.py- Tests core plugin functionalitytest_utils.py- Tests utility functionstest_cli.py- Tests command-line interfacetest_dash_integration.py- Tests end-to-end Dash application integration (requires browser automation)conftest.py- pytest configuration and fixturesREADME.md- English test documentationREADME-zh_CN.md- Chinese test documentation
pip install -r requirements-dev.txtpython -m pytest tests/python -m pytest tests/test_plugin.py
python -m pytest tests/test_utils.py
python -m pytest tests/test_cli.py
python -m pytest tests/test_dash_integration.pypython -m pytest tests/ -v- Tests plugin class initialization and methods
- Tests utility function functionality
- Tests CLI command parsing and execution
- Tests plugin integration with Dash applications
- Tests end-to-end workflows
To generate a test coverage report, run:
python -m pytest tests/ --cov=dash_tailwindcss_plugin --cov-report=htmlThis will generate an HTML coverage report that can be viewed in a browser.