File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ dev: build-dev
27
27
@docker-compose --env-file .env.dev -f docker-compose.dev.yml up
28
28
29
29
30
+ # The command to be replaced in `stemmaweb-e2e`'s entrypoint
30
31
CY_NPM_COMMAND ="cy:run"
31
32
32
33
build-tests :
@@ -36,11 +37,15 @@ build-tests:
36
37
build-tests-arm :
37
38
@make build-tests CY_NPM_COMMAND=" cy:run:arm"
38
39
39
- tests : build-tests
40
+ tests : tests-down build-tests
40
41
@echo " ==> 🧪 Run E2E Tests"
41
42
@CY_NPM_COMMAND=$(CY_NPM_COMMAND ) docker-compose --env-file .env.dev -f docker-compose.test.yml up
42
43
43
- tests-arm : build-tests-arm
44
+ tests-down :
45
+ @echo " ==> 🛑 Stop Test Containers"
46
+ @docker-compose --env-file .env.dev -f docker-compose.test.yml down
47
+
48
+ tests-arm :
44
49
@make tests CY_NPM_COMMAND=" cy:run:arm"
45
50
46
51
install-middleware :
@@ -76,4 +81,4 @@ stop: stop-middleware stop-frontend
76
81
77
82
dev-down :
78
83
@echo " ==> 🛑 Stop Dev Containers"
79
- @docker-compose -f docker-compose.dev.yml down
84
+ @docker-compose --env-file .env.dev - f docker-compose.dev.yml down
Original file line number Diff line number Diff line change @@ -7,7 +7,4 @@ COPY package.json package-lock.json ./
7
7
RUN npm ci
8
8
9
9
# Copy source files
10
- COPY . .
11
-
12
- # Run tests
13
- CMD ["npm" , "test" ]
10
+ COPY . .
Original file line number Diff line number Diff line change 8
8
"cy:open" : " cypress open" ,
9
9
"cy:run" : " cypress run" ,
10
10
"cy:run:arm" : " cypress run --browser electron" ,
11
- "test" : " npm run cy:run"
11
+ "test" : " npm run cy:run" ,
12
+ "start" : " npm run cy:open"
12
13
},
13
14
"keywords" : [],
14
15
"author" : " " ,
You can’t perform that action at this time.
0 commit comments