These are chat archives for Codeception/CodeceptJS

16th
Nov 2016
Kevin Gu
@junguchina
Nov 16 2016 06:49
Hi guys, is there a way to specified the test file paths in the tests of codecept.json?
I want to run the spcified test files instead of the default config,like below
"tests": "./*_test.js",
Sabri M.
@smuti
Nov 16 2016 08:06
@junguchina you can use codecept.conf.js instead of codecept.json
by this way you can change on the fly

`exports.config = {
tests: process.env.testPath || './tests/*/-test.js',
output: './output',
data: './data/',
helpers: {
WebDriverIO: {
url: process.env.testUrl || 'https://www.abc.com',
browser: 'chrome',
host: 'localhost',
waitForTimeout: process.env.testTimeout || 9000,
windowSize: 'maximize',
port: 4444
}
},
include: {

},
bootstrap: false,
mocha: {},
name: 'e2e'

};`

Kevin Gu
@junguchina
Nov 16 2016 08:55
@smuti yeah,I know this config js file,but I means that,maybe like
tests: {
  login: './login/login_test.js',
  register: './register/register_test.js'
}
Kevin Gu
@junguchina
Nov 16 2016 09:00
Now it can only recognize the one paramter of test files,can not recognize several paramters from different folder path.