A community-driven collection of end-to-end test cases to validate the user-facing behavior of Theia.
The tests are based on Theia 🎭 Playwright and are located in the folder tests
.
Each test is defined in a dedicated *.test.ts
file.
The tests run periodically against Theia's main
branch and is published to the test report.
This test suite is not maintained by the core committers of Theia, but is a community effort. Feel free to add tests and benefit from them being executed periodically against Theia master. However, please maintain the test if it needs fixing (see also the guidelines below). This initiative has a trial period of 2 community releases If the maintenance does not work well, the core team might decide to not host the test suite anymore. In this case, you are free to fork the suite and continue to use it though.
Run yarn
in the root directory of the repository.
The Theia browser application under test already needs to be running at port 3000. See Theia's Quick Start guide for more details on how to start Theia.
To start the tests run yarn ui-tests
in this directory.
This will start the tests in a headless execution mode.
There is also a VS Code task available called Run all tests
.
To only run a single test file, the path of a test file can be set with yarn ui-tests <path-to-file>
or yarn ui-tests -g "<partial test file name>"
.
Please note that you can't use the file extension .ts
in the expression used in <path-to-file>
.
Either drop the file extension entirely, or use .js
instead.
See the Playwright Test command line documentation.
Please check for additional scripts in the package.json
in order to run tests in headful mode and to generate reports.
To debug a test, open the test file in the code editor and run the Debug selected test file
configuration inside VS Code.
This is a community-driven test suite. So contributions with contributions of additional test cases, as well as fixes and enhancements of existing test cases are very welcome.
Please follow the guidelines below:
- Fork this repository and open a Pull Request with your changes. Make sure you have signed the Eclipse Contributor Agreement (ECA)
- Make sure your changes pass the continuous integration builds. Every test will be executed against the latest Theia master periodically.
- If tests would benefit from extensions of the Theia 🎭 Playwright page object model, please consider contributing those extensions directly to Theia first.
⚠️ This test suite is not maintained by the core committers of Theia, but are a highly appreciated community effort.- If a test you've added breaks because of a bug in Theia or in Theia 🎭 Playwright, please open an issue in Theia with a description of the bug and open an issue in this repository to track the failing test. Make sure to link the issues via comment or directly in their description. Feel free to open a pull request with a fix for Theia too.
- If a test you've added breaks over time and the test needs to be adapted, please open an issue in this repository and a pull request with a fix.
- Test cases that broke and haven't been fixed for a longer period of time will be removed.