eclipse-theia / theia-e2e-test-suite

theia-e2e-test-suite
Other
0 stars 6 forks source link

Theia End-to-End Test Suite main Report Report

A community-driven collection of end-to-end test cases to validate the user-facing behavior of Theia.

Overview

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.

Building

Run yarn in the root directory of the repository.

Executing the tests

Prerequisites

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.

Running the tests headless

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.

Running the tests headful, reporting and debugging

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.

Contributing and maintaining tests

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:

More documentation