UNPKG

756 BJavaScriptView Raw
1import NightwatchConfigurationFactory from 'catela/test/nightwatch/NightwatchConfigurationFactory'
2import path from 'path'
3
4class IntegrationTestSetup {
5 constructor (options) {
6 this._options = options
7 this._application = options.application
8 this._spec = options.spec
9 this._rootProjectPath = options.projectPath
10 this._rootApplicationPath = path.join(this._rootProjectPath, 'applications', this._application)
11 this._testSpecFile = path.join(this._rootApplicationPath, this._spec)
12 }
13
14 run () {
15 console.log('=> rootProjectPath: ' + this._rootProjectPath)
16 console.log('=> rootApplicationPath: ' + this._rootApplicationPath)
17 console.log('=> testSpecFile: ' + this._testSpecFile)
18 }
19}
20
21export default IntegrationTestSetup