File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ if (totalNodes > 1) {
6
6
parallelNodeInfo = ` (node: ${ parseInt ( process . env . CIRCLE_NODE_INDEX , 10 ) + 1 } /${ totalNodes } )`
7
7
}
8
8
9
- const file = 'tests/e2e/results/e2e.results. json'
10
- const appBuildType = process . env . APP_BUILD_TYPE || 'Web '
9
+ const file = fs . readdirSync ( 'tests/e2e/mochawesome-report' ) . find ( file => file . endsWith ( '-setup-report. json') )
10
+ const appBuildType = process . env . APP_BUILD_TYPE || 'VSCode (Linux) '
11
11
const results = {
12
12
message : {
13
13
text : `*E2ETest - ${ appBuildType } ${ parallelNodeInfo } * (Branch: *${ process . env . CIRCLE_BRANCH } *)` +
@@ -19,22 +19,22 @@ const results = {
19
19
const result = JSON . parse ( fs . readFileSync ( file , 'utf-8' ) )
20
20
const testRunResult = {
21
21
color : '#36a64f' ,
22
- title : `Started at: *${ result . startTime } ` ,
23
- text : `Executed ${ result . total } in ${ ( new Date ( result . endTime ) - new Date ( result . startTime ) ) / 1000 } s` ,
22
+ title : `Started at: *${ result . stats . start } ` ,
23
+ text : `Executed ${ result . stats . tests } in ${ ( new Date ( result . stats . end ) - new Date ( result . stats . start ) ) / 1000 } s` ,
24
24
fields : [
25
25
{
26
26
title : 'Passed' ,
27
- value : result . passed ,
27
+ value : result . stats . passes ,
28
28
short : true ,
29
29
} ,
30
30
{
31
31
title : 'Skipped' ,
32
- value : result . skipped ,
32
+ value : result . stats . skipped ,
33
33
short : true ,
34
34
} ,
35
35
] ,
36
36
} ;
37
- const failed = result . total - result . passed ;
37
+ const failed = result . stats . tests - result . stats . passes ;
38
38
if ( failed ) {
39
39
results . passed = false ;
40
40
testRunResult . color = '#cc0000' ;
Original file line number Diff line number Diff line change 1
1
COMMON_URL = http://localhost:5541
2
2
API_URL = http://127.0.0.1:5541/api
3
3
OSS_SENTINEL_PASSWORD = password
4
- RI_APP_FOLDER_NAME = .redis-insight-vsc -stage
4
+ RI_APP_FOLDER_NAME = .redis-for-vscode -stage
5
5
EXTENSION_NAME = redis-for-vscode-extension-linux-x64.vsix
6
6
RI_TEST = true
7
7
Original file line number Diff line number Diff line change 1
1
API_URL = http://127.0.0.1:5541/api
2
2
RI_TEST = true
3
3
OSS_SENTINEL_PASSWORD = password
4
- RI_APP_FOLDER_NAME = .redis-insight-vsc -stage
4
+ RI_APP_FOLDER_NAME = .redis-for-vscode -stage
5
5
VSCODE_VERSION = 1.82.0
6
6
EXTENSION_NAME = redis-for-vscode-extension.vsix
7
7
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class Config {
13
13
14
14
static workingDirectory =
15
15
process . env . APP_FOLDER_ABSOLUTE_PATH ||
16
- joinPath ( os . homedir ( ) , process . env . APP_FOLDER_NAME || '.redis-for-vscode' )
16
+ joinPath ( os . homedir ( ) , process . env . RI_APP_FOLDER_NAME || '.redis-for-vscode' )
17
17
static fileDownloadPath = joinPath ( os . homedir ( ) , 'Downloads' )
18
18
static uniqueId = chance . string ( { length : 10 } )
19
19
You can’t perform that action at this time.
0 commit comments