developers

No menu items for this category

Cypress Integration Tests

Before proceeding ensure that you have followed all the pre-requisites in the OpenMetadata UI section.

Cypress tests also require all the services to be up and running in a clean slate including Elastic Search, Airflow and MySQL database. The quickest way to bring all the services up and running in local is to use the following script which will start all the required docker containers.

  • Start Cypress
  • Select a browser of your choice from the dropdown list and click on the "Run {n} integration specs" button to run all the tests
Cypress screenshot

Screen-shot of Cypress window

Cypress tests can leave side effects on the environment and can result in failures when run repeatedly. If the tests are to be run for the second time, the database needs to be reset to a clean slate and the OM server needs to be restarted.

Find the distribution tar file from openmetadata-dist/target/openmetadata-$VERSION.tar.gz and follow the instructions in this section to execute the drop-create-all command. After that restart the server and then run the Cypress tests again.