Skip to content

equodev/chromium-multiplatform-testing

Repository files navigation

Project Setup

To set up the project, start by installing the necessary dependencies using the following command in the root folder:

yarn install

Initializing GLSP Submodules

GLSP (Graphical Language Server Platform) submodules are required to run GLSP on different IDEs. Each submodule corresponds to a specific IDE integration for testing purposes. Initialize the submodules by executing:

git submodule update --init

Disclaimer:

The following sections explain how to set up the required submodules to run our test examples. At least one submodule must be set up to run the project, while the other two are optional. For more detailed information about GLSP projects and their integrations, please refer to the respective README files in the official GLSP GitHub repository. We have provided a simplified setup process to streamline the configuration of each submodule.

Before running the tests

Before running the tests, you need to modify the IDE variable in the example.spec.ts file located in the tests folder. This variable allows you to select the IDE on which the tests will run.

It is essential to have the latest release of Visual Studio Code installed, as it is required to run the code-server-web command effectively. Keeping your VS Code installation up to date ensures compatibility with the latest features, security patches, and extensions.

VSCode GLSP Integration Setup

  1. Navigate to the glsp-vscode-integration folder and install its dependencies by running:
yarn install
  1. Open the vscode_setup.ts file and update the vscode binary location (specified in the results variable) to point to your local VS Code binary file and modify the vscode binary location (results var) to point to your local vscode binary.

  2. In a terminal, start the VS Code web server by running:

code serve-web

This command launches a local web server that serves the web interface of your VS Code, allowing you to access VS Code through a web browser and enabling the tests to interact directly with it. During the VS Code test runs, the required GLSP extension will be installed to render the graphics.

Sidenote: GLSP extension is installed during the tests to render the graphics:

  1. Import the glsp-vscode-integration folder as needed.

After completing these steps, you should be able to run the example tests.

To verify the installation was successful, open the example1.wf file within the example/workspace folder.

Eclipse Theia GLSP Integration setup

NOTE: The Theia example can be run inside both the Theia IDE and VS Code, as it mounts the IDE software on a localhost, similar to the previous VS Code example.

  1. Open the glsp-theia-integration submodule folder and install its dependencies by running:
yarn browser install
  1. Start the application by running:
yarn browser start

By default the application will run on the localhost:3000 port.

  1. Open the example1.wf file to confirm that GLSP is working as expected.

Eclipse GLSP Integration setup

A script is provided to streamline the Eclipse setup process. In the parent chromium-multiplatform-testing folder, execute the following command in a bash terminal to install all dependencies:

./setup_glsp_integration.sh

Quick note

If you are having trouble running the Eclipse app using MacOS or a Unix based system, try the following command to enable extended attributes in case the app seems to be damaged.

xattr -cr /path/to/Eclipse.app

Add debugging port

To add a debugging port in Eclipse, follow these steps:

  1. Navigate to Run > Run Configuration > Arguments > VM Arguments.
  2. Add the following line to the VM arguments:
-Dchromium_remote_debugging_port=8888

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •