Skip to content
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

Add support for multiple configuration files #3522

Closed
Waterstraal opened this issue Mar 4, 2019 · 2 comments
Closed

Add support for multiple configuration files #3522

Waterstraal opened this issue Mar 4, 2019 · 2 comments
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot.

Comments

@Waterstraal
Copy link

Waterstraal commented Mar 4, 2019

At the moment Testcafé supports a single .testcaferc.json file. However, I have different needs in a c.i. environment than I have on my local machine for example. In my c.i. environment I have a need for the xunit reporter, multiple browsers and video recording for example, which I don't need locally.

The api could look like this:
testcafe --config .testcaferc-dev.json
testcafe --config .testcaferc-test.json

.testcaferc-dev.json:

{
  "browsers": "chrome",
  "reporter": "list"
}

.testcaferc-test.json:

{
  "browsers": [
    "chrome",
    "firefox",
    "edge"
  ],
  "reporter": [
    {
      "name": "xunit",
      "output": "reports/testcafe_tests.xml"
    },
    {
      "name": "html",
      "output": "reports/index.html"
    }
  ],
  "screenshotPath": "reports/screenshots",
  "takeScreenshotsOnFails": true,
  "videoPath": "reports/videos",
  "videoOptions": {
    "singleFile": true,
    "failedOnly": false,
    "pathPattern": "${USERAGENT}/${FILE_INDEX}.mp4"
  },
}

Aside from this, I would also need a different baseUrl for each environment in my DTAP street so adding baseUrl to the config and having the option to pass in the config file to testcafé would be very nice. Sadly baseUrl is currently not part of the configuration yet.

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Mar 4, 2019
@miherlosev
Copy link
Collaborator

@Waterstraal

Thank you for your suggestion regarding the support for multiple configuration files. We received a similar request earlier and will consider implementing this feature in the context of this issue:

#3428.

As for the baseUrl feature, is not a part of our roadmap. We will appreciate it if you get a chance to contribute this feature to our project. We will certainly help you in implementing this feature.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Mar 5, 2019
@lock
Copy link

lock bot commented Mar 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot.
Projects
None yet
Development

No branches or pull requests

2 participants