-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from gemini-testing/feat/sub-processes
feat: running of tests in subprocesses
- Loading branch information
Showing
47 changed files
with
1,432 additions
and
819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const QEmitter = require('qemitter'); | ||
const pluginsLoader = require('plugins-loader'); | ||
|
||
const Config = require('./config'); | ||
const RunnerEvents = require('./constants/runner-events'); | ||
const WorkerRunnerEvents = require('./worker/constants/runner-events'); | ||
|
||
const PREFIX = require('../package').name + '-'; | ||
|
||
module.exports = class BaseHermione extends QEmitter { | ||
static create(configPath) { | ||
return new this(configPath); | ||
} | ||
|
||
constructor(configPath) { | ||
super(); | ||
|
||
this._config = Config.create(configPath); | ||
} | ||
|
||
get config() { | ||
return this._config; | ||
} | ||
|
||
get events() { | ||
return _.extend({}, RunnerEvents, WorkerRunnerEvents); | ||
} | ||
|
||
_loadPlugins() { | ||
pluginsLoader.load(this, this.config.plugins, PREFIX); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.