Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Testcafe - reporter does not read options from testcaferc.json

I've been scratching my head with this for quite a while. I want to move the reporter options from my cli/package.json command into the testcaferc.json file, e.g.

"test:chrome:all": "testcafe chrome:headless ./src/tests/*test.ts --skip-js-errors --concurrency 4"

testcaferc.json:

"reporter": [
    {
      "name": "json"
    },
    {
      "output": "./artifacts/reports",
      "pathPattern": "${DATE}/${USERAGENT}/${TIME}/${FIXTURE}/${TEST}.json"
    }

However when i run my script it doesn't pick up these options and therefore doesn't create the report in the specified directory.

However if I include the --reporter json command in my cli, e.g.

"test:chrome:all": "testcafe chrome:headless ./src/tests/*test.ts --reporter json:./artifacts/reports/chrome_results.json --skip-js-errors --concurrency 4"

When I run the test, it states The "reporter" options from the configuration file will be ignored. and the report is created correctly.

So it can see them but just doesn't use them when not including --reporter json in the cli

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This behavior is a bug. There is a corresponding issue in the TestCafe GitHub repository: https://github.com/DevExpress/testcafe/issues/6665

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!