This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 14
14
"prepublish" : " npm run clean && npm run compile" ,
15
15
"test" : " npm run compile && npm run lint && atom --test build/test"
16
16
},
17
+ "atomTestRunner" : " ./test/runner" ,
17
18
"dependencies" : {
18
19
"fuzzaldrin-plus" : " ^0.6.0" ,
19
20
"vscode-jsonrpc" : " 4.0.0" ,
20
21
"vscode-languageserver-protocol" : " 3.12.0" ,
21
22
"vscode-languageserver-types" : " 3.12.0"
22
23
},
23
24
"devDependencies" : {
25
+ "@smashwilson/atom-mocha-test-runner" : " ^1.4.0" ,
24
26
"@types/atom" : " ^1.31.0" ,
25
27
"@types/chai" : " ^4.1.7" ,
26
28
"@types/fuzzaldrin-plus" : " 0.6.0" ,
Original file line number Diff line number Diff line change
1
+ const { TestRunnerParams } = require ( "atom" ) ;
2
+ const { createRunner } = require ( '@smashwilson/atom-mocha-test-runner' ) ;
3
+
4
+ module . exports = createRunner ( {
5
+ htmlTitle : `atom-languageclient Tests - pid ${ process . pid } ` ,
6
+ reporter : process . env . MOCHA_REPORTER || 'list' ,
7
+ } ,
8
+ ( mocha ) => {
9
+ mocha . timeout ( parseInt ( process . env . MOCHA_TIMEOUT || '5000' , 10 ) ) ;
10
+ if ( process . env . APPVEYOR_API_URL ) {
11
+ mocha . reporter ( require ( 'mocha-appveyor-reporter' ) ) ;
12
+ }
13
+ } ,
14
+ ) ;
You can’t perform that action at this time.
0 commit comments