@eclipse-che/che-e2e 7.41.0-dev-75c9a37 → 7.41.0-dev-7a745f0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/build/dockerfiles/entrypoint.sh +3 -3
- package/initDevfileTests.sh +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
**Perform commands:**
|
|
13
13
|
|
|
14
14
|
- ```export TS_SELENIUM_BASE_URL=<Che7 URL>```
|
|
15
|
-
- ```npm
|
|
15
|
+
- ```npm ci```
|
|
16
|
+
|
|
17
|
+
Note: If there is any modifications in package.json, manually execute the `npm install` to update the package-lock.json. So that errors can be avoided while executing npm ci
|
|
16
18
|
|
|
17
19
|
## Default launch
|
|
18
20
|
|
|
@@ -64,7 +64,7 @@ done
|
|
|
64
64
|
if mount | grep 'e2e' && ! mount | grep 'e2e/report'; then
|
|
65
65
|
echo "The local code is mounted. Executing local code."
|
|
66
66
|
cd /tmp/e2e || exit
|
|
67
|
-
npm
|
|
67
|
+
npm ci
|
|
68
68
|
else
|
|
69
69
|
echo "Executing e2e tests from an image."
|
|
70
70
|
cd /tmp/e2e || exit
|
|
@@ -85,13 +85,13 @@ if [ $TS_LOAD_TESTS ]; then
|
|
|
85
85
|
echo "Tarring files and sending them via FTP..."
|
|
86
86
|
tar -cf $user_folder.tar ./$user_folder
|
|
87
87
|
|
|
88
|
-
ftp -vn load-tests-ftp-service << End_script
|
|
88
|
+
ftp -vn load-tests-ftp-service << End_script
|
|
89
89
|
user user pass1234
|
|
90
90
|
binary
|
|
91
91
|
put $user_folder.tar
|
|
92
92
|
quit
|
|
93
93
|
End_script
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
echo "Files sent to load-tests-ftp-service."
|
|
96
96
|
else
|
|
97
97
|
SCREEN_RECORDING=${VIDEO_RECORDING:-true}
|
package/initDevfileTests.sh
CHANGED
|
@@ -8,21 +8,21 @@ launchAllUserstories(){
|
|
|
8
8
|
echo ""
|
|
9
9
|
echo "Launching all userstories";
|
|
10
10
|
echo ""
|
|
11
|
-
|
|
12
|
-
npm run lint && npm run tsc && mocha --
|
|
11
|
+
|
|
12
|
+
npm run lint && npm run tsc && mocha --config mocha-all-devfiles.json ;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
launchSingleUserstory(){
|
|
16
16
|
echo ""
|
|
17
17
|
echo "Launching the \"${USERSTORY}\" userstory";
|
|
18
18
|
echo ""
|
|
19
|
-
|
|
20
|
-
tsc && mocha --
|
|
19
|
+
|
|
20
|
+
tsc && mocha --config mocha-single-devfile.json --spec dist/tests/login/Login.spec.js --spec dist/tests/devfiles/${USERSTORY}.spec.js ;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
checkUserstoryName(){
|
|
24
24
|
local checkedName="$(ls tests/devfiles | grep ${USERSTORY}.spec.ts)";
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
if [ -z "$checkedName" ]; then
|
|
27
27
|
echo ""
|
|
28
28
|
echo "Current value USERSTORY=\"${USERSTORY}\" doesn't match to any existed test:"
|
|
@@ -31,7 +31,7 @@ checkUserstoryName(){
|
|
|
31
31
|
echo ""
|
|
32
32
|
echo "Please choose one of the tests above, or unset the \"USERSTORY\" variable for launching all of them."
|
|
33
33
|
echo ""
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
exit 1;
|
|
36
36
|
fi
|
|
37
37
|
}
|