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 1414 "prepublish" : " npm run clean && npm run compile" ,
1515 "test" : " npm run compile && npm run lint && atom --test build/test"
1616 },
17+ "atomTestRunner" : " ./test/runner" ,
1718 "dependencies" : {
1819 "fuzzaldrin-plus" : " ^0.6.0" ,
1920 "vscode-jsonrpc" : " 4.0.0" ,
2021 "vscode-languageserver-protocol" : " 3.12.0" ,
2122 "vscode-languageserver-types" : " 3.12.0"
2223 },
2324 "devDependencies" : {
25+ "@smashwilson/atom-mocha-test-runner" : " ^1.4.0" ,
2426 "@types/atom" : " ^1.31.0" ,
2527 "@types/chai" : " ^4.1.7" ,
2628 "@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