Configuration file in different directory won't work as expected
See original GitHub issueHi, first - thanks for this awesome lib.
We’re using builder for our projects and would like to include codeceptjs in our archetype(s).
This means we’d like to put the configuration file into a folder like node_modules/org/archetype/config/codeceptjs/config.js
.
As far as I can see, there’s no option to specify the configuration file via the command line yet (as for example with webpack --config=…)
I tried to do
codeceptjs run node_modules/org/archetype/config/codeceptjs/
but it won’t run the tests.
It only outputs “OK | 0 passed”.
Do I have to do anything different?
Command:
flipace@mbpro:~/Development/project$ codeceptjs run node_modules/org/builder-archetype/config/integration-tests
CodeceptJS v0.4.8
Using test root "/Users/flipace/Development/project/node_modules/org/builder-archetype/config/integration-tests"
OK | 0 passed // 0ms
Config:
exports.config = {
tests: path.join(ROOT, 'src/integration-tests/build/tests.bundle.js'),
timeout: 10000,
output: path.join(ROOT, 'reports/integration-tests'),
helpers: {
WebDriverIO: {
url: process.env.URL || 'http://localhost:3000',
user: process.env.BROWSERSTACK_USER || 'none',
key: process.env.BROWSERSTACK_KEY || 'key',
browser: browser.browserName,
desiredCapabilities: Object.assign({}, browser, {
'browserstack.local': process.env.BROWSERSTACK_LOCAL || false
})
}
},
include: {
I: path.join(ROOT, 'src/integration-tests/custom-steps.js')
},
bootstrap: false,
mocha: {},
name: 'someName'
};
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
visual studio 2008 - .config file not loaded from working directory
I am new to using .config files, having worked on apps that use .INI files and the registry until very recently. I am...
Read more >Current working directory-based config file loading? · Issue #471
CWD is in some "project" directory containing an expected-to-be-loaded conf file, but one is using inv -c othercollection , and othercollection ...
Read more >Configuration fails to load due to missing file or directory - AskF5
Important: Performing this procedure will allow your configuration to load, however it will not restore the missing files.
Read more >Configuration | Stylelint
Stylelint expects a configuration object. Stylelint uses cosmiconfig to find and load your configuration object. Starting from the current working directory, it ...
Read more >Initializing Working Directories - Terraform CLI
Working directories contain configurations, settings, cached plugins and modules, and state data. Learn how to initialize and manage working directories.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please try new
--config
option implemented by @cnworks . Available since 0.4.9Could you paste your config and the command you use so if anyone stumbles upon the same issue they should have a solution?