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.

Team city reporter

See original GitHub issue

Description

I wonder if anyone tried to use team city reporter for jest? I’m looking at jest-teamcity-reporter and following guide:

  1. npm install --save-dev jest-teamcity-reporter
  2. package.json
"jest": {
    "testResultsProcessor": "node_modules/jest-teamcity-reporter"
}

and following modification to scripts section:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject",
    "ci": "react-scripts test --env=jsdom --teamcity"
  },

then run CI=true npm run ci

Expected behavior

Output of team city reporter

Actual behavior

Tests are run with standard reporter and following message have been reported:

react-scripts test --env=jsdom --teamcity
Unrecognized options: teamcity

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): └── react-scripts@0.6.1
  2. node -v: v5.1.0
  3. npm -v: 3.8.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
mikebridgecommented, Apr 7, 2017

When I added jest.testResultsConfigurator directly to my package.json file it interfered with my test compilation, so I removed it and added a parameter to the test-runner script instead:

"scripts": {
    "test:teamcity": "react-scripts test --env=jsdom --testResultsProcessor=jest-teamcity-reporter"
}

Or the create-react-app-typescript equivalent:

"scripts": {
    "test:teamcity": "react-scripts-ts test --env=jsdom --testResultsProcessor=jest-teamcity-reporter"
}
2reactions
gaearoncommented, May 16, 2017

This is configurable in the next version. https://github.com/facebookincubator/create-react-app/pull/1830

Read more comments on GitHub >

github_iconTop Results From Across the Web

mocha-teamcity-reporter - npm
mocha-teamcity-reporter Teamcity reporter which makes it possible to display test results in real-time, makes test information available on ...
Read more >
Teamcity Reporter Reporter - WebdriverIO
WebdriverIO Teamcity reporter which makes it possible to display test results in real-time, makes test information available on the Tests tab of the...
Read more >
Mocha Reporter - TeamCity Plugin - JetBrains Marketplace
Mocha Reporter. Compatible with TeamCity. Overview. Reviews. On-the-fly reporting via service messages for Mocha JavaScript testing framework.
Read more >
Integrate TestCafe with TeamCity | Guides | Docs - TestCafe
The testcafe-reporter-teamcity plugin enables TestCafe to output test run results in the TeamCity format. The reports will be presented in the TeamCity UI ......
Read more >
TeamCity Reporter | Developer Guide - Nightwatch.js
TeamCity reporter. Overview. TeamCity formatter for Nightwatch.js end-to-end testing framework. Its output can be used by other tools to visualize ...
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