Skip to content

feature(config): add ability to run ts config file #2750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

elaichenkov
Copy link
Contributor

Motivation/Description of the PR

  • I've added the ability to run the codecept.conf.ts config file with the command npx codeceptjs run

Before these changes:

Output after running the npx codeceptjs run command with the codecept.conf.ts config file:

Error: Can not load config from /Users/Ivan/Desktop/codecept.conf.js or  /Users/Ivan/Desktop/codecept.json
CodeceptJS is not initialized in this dir. Execute 'codeceptjs init' to start

After these changes:

Output after running the npx codeceptjs run command with the codecept.conf.ts config file:

CodeceptJS v3.0.4
Using test root "/Users/Ivan/Desktop"

Call functionality --
...

Applicable helpers:

  • WebDriver
  • Puppeteer
  • Nightmare
  • REST
  • FileHelper
  • Appium
  • Protractor
  • TestCafe
  • Playwright

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • puppeteerCoverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • wdio

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent
Copy link
Collaborator

@elaichenkov
Copy link
Contributor Author

elaichenkov commented Jan 14, 2021

@elaichenkov are you having this?

https://github.com/codeceptjs/CodeceptJS/pull/2708/files

Hey @peterngtr
Yeah, I have this one, you can open full view and take a look at the end of the file
My changes are not about loadConfigFile function, they're about the static load method.

@Georgegriff Georgegriff merged commit ca8d6b3 into codeceptjs:3.x Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants