question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration file in different directory won't work as expected

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
DavertMikcommented, Nov 14, 2016

Please try new --config option implemented by @cnworks . Available since 0.4.9

0reactions
DavertMikcommented, Nov 20, 2016

Could you paste your config and the command you use so if anyone stumbles upon the same issue they should have a solution?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found