Skip to content

Conversation

@teodossidossev
Copy link
Contributor

WHAT:

Introduce Docker-based test infrastructure for Cypress E2E tests using testcontainers. This includes new npm scripts, config files, Dockerfiles, and support logic for spinning up and tearing down GraphDB and Workbench containers during test runs.

WHY:

Running E2E tests in isolated, reproducible environments improves test reliability, supports parallelization, and ensures compatibility with containerized deployments. Testcontainers allow automated lifecycle management of service dependencies, eliminating manual setup.

HOW:

  • Added cy:run-testcontainers and parallel npm scripts for executing tests in parallel against testcontainers.
  • Implemented container orchestration logic via testcontainers in Cypress plugins:
  • Start/stop logic for GraphDB and Workbench containers with shared network.
  • Extended Cypress support files with before/after hooks to manage lifecycle.
  • Created cypress-testcontainers.config.js to dynamically assign ports and baseUrl.
  • Added Dockerfiles and docker-compose-testcontainers.yaml to enable CI integration.
  • Introduced environment substitution for NGINX config in start-workbench.sh.

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • Squash commits
  • MR name
  • MR Description
  • Tests

@teodossidossev teodossidossev force-pushed the GDB-11898-cypress-run-parallel-MIGRATION branch 30 times, most recently from dfe5958 to 38762b9 Compare July 1, 2025 02:58
@boyan-tonchev boyan-tonchev force-pushed the GDB-10373-workbench-with-single-spa branch from 42985f4 to d12ecc1 Compare July 1, 2025 07:49
@teodossidossev teodossidossev force-pushed the GDB-11898-cypress-run-parallel-MIGRATION branch 3 times, most recently from 9cfb460 to 763b79a Compare July 1, 2025 08:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 1, 2025

@teodossidossev teodossidossev force-pushed the GDB-11898-cypress-run-parallel-MIGRATION branch 19 times, most recently from c85015c to 1d9849b Compare July 1, 2025 12:18
… support

## WHAT:
Introduce Docker-based test infrastructure for Cypress E2E tests using testcontainers. This includes new npm scripts, config files, Dockerfiles, and support logic for spinning up and tearing down GraphDB and Workbench containers during test runs.

## WHY:
Running E2E tests in isolated, reproducible environments improves test reliability, supports parallelization, and ensures compatibility with containerized deployments. Testcontainers allow automated lifecycle management of service dependencies, eliminating manual setup.

## HOW:
- Added cy:run-testcontainers and parallel npm scripts for executing tests in parallel against testcontainers.
- Implemented container orchestration logic via testcontainers in Cypress plugins:
- Start/stop logic for GraphDB and Workbench containers with shared network.
- Extended Cypress support files with before/after hooks to manage lifecycle.
- Created cypress-testcontainers.config.js to dynamically assign ports and baseUrl.
- Added Dockerfiles and docker-compose-testcontainers.yaml to enable CI integration.
- Introduced environment substitution for NGINX config in start-workbench.sh.
@teodossidossev teodossidossev force-pushed the GDB-11898-cypress-run-parallel-MIGRATION branch from 1d9849b to 7556ba5 Compare July 1, 2025 12:28
@yordanalexandrov yordanalexandrov force-pushed the GDB-10373-workbench-with-single-spa branch from e9a1906 to 9df5f57 Compare July 3, 2025 11:01
@yordanalexandrov yordanalexandrov changed the base branch from GDB-10373-workbench-with-single-spa to master July 4, 2025 08:55
@svilenvelikov svilenvelikov marked this pull request as draft July 14, 2025 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants