Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Make npm test run tests #256

Merged
merged 4 commits into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"prepublish": "npm run clean && npm run compile",
"test": "npm run compile && npm run lint && atom --test build/test"
},
"atomTestRunner": "./test/runner",
"dependencies": {
"fuzzaldrin-plus": "^0.6.0",
"vscode-jsonrpc": "4.0.0",
"vscode-languageserver-protocol": "3.12.0",
"vscode-languageserver-types": "3.12.0"
},
"devDependencies": {
"@smashwilson/atom-mocha-test-runner": "^1.4.0",
"@types/atom": "^1.31.0",
"@types/chai": "^4.1.7",
"@types/fuzzaldrin-plus": "0.6.0",
Expand Down
14 changes: 14 additions & 0 deletions test/runner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { TestRunnerParams } = require("atom");
const { createRunner } = require('@smashwilson/atom-mocha-test-runner');

module.exports = createRunner({
htmlTitle: `atom-languageclient Tests - pid ${process.pid}`,
reporter: process.env.MOCHA_REPORTER || 'list',
},
(mocha) => {
mocha.timeout(parseInt(process.env.MOCHA_TIMEOUT || '5000', 10));
if (process.env.APPVEYOR_API_URL) {
mocha.reporter(require('mocha-appveyor-reporter'));
}
},
);