Code Monkey home page Code Monkey logo

theia-e2e-test-suite's Introduction

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:

  • 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.

More documentation

theia-e2e-test-suite's People

Contributors

eclipsewebmaster avatar jonashelming avatar matthewkhouzam avatar planger avatar tortmayr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.