[MGNLTEST-311] UI tests can run locally without the need to locally change .env and docker file(s) Created: 03/Oct/22  Updated: 16/Nov/23

Status: Selected
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: TAE
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to BUILD-1159 keep Selenium in sync for multiple pr... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: TAE-build-or-infra-tasks
Team: Foundation
Work Started:

 Description   

Context

Developers can run UI tests locally - if they want. At least when developing test-fwk features this makes a lot of sense.

When apple M1-silicon machines appeared, initially we could not run UI tests, chromedriver was not properly supported. But now we can - see https://wiki.magnolia-cms.com/display/DEV/Running+UI-tests+with+M1+and+M2+Macbooks 

However, developers with machines with M1 or M2 silicon, the need to adapt the .env file and the docker file (see linked WIKI page above).

Taks:

Provide a script or the like e.g. in .profile and if necessary adapt .env and docker files to set proper context automatically - when running UI-tests locally - independent whether it runs on Intel or apple silicon.

Ideally we find a solution which will work for:

  • test-fwk
  • ce
  • dx-core
  • ...

Developer notes

Possible solutions

  • bash script to "start" the procedure
    • specifying the proper values for the env params
    • then calling the docker file
  • get rid of .env file
    • to be replaced with a (simple) CLI tool


 Comments   
Comment by Christoph Meier [ 17/Oct/22 ]

Idea:

Use a maven profile which runs a maven-plugin to execute the docker-compose. Profile can execute for

  • Intel config
  • M1/M2 config

Plugin: https://github.com/fabric8io/docker-maven-plugin 

Plugin runs in the phase "pre-integration-bla" of maven.

Generated at Mon Feb 12 07:47:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.