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

NDS-36 Added teamcity reporter for test:coverage #22

Merged
merged 6 commits into from
Jan 15, 2018

Conversation

d-lan1
Copy link
Contributor

@d-lan1 d-lan1 commented Dec 13, 2017

@ediblecode ediblecode changed the title NDS36 Added teamcity reporter for test:coverage NDS-36 Added teamcity reporter for test:coverage Dec 18, 2017
package.json Outdated
@@ -61,6 +66,7 @@
"chalk": "^2.3.0",
"compression": "^1.6.2",
"debug": "^3.1.0",
"each-async": "^1.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we need each-async as an explicit dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey i was having issues with it locally for some reason. I think i may have caused it while experimenting with eslint teamcity reporter but not 100% it was caused this way. I will remove it from being explicitly required.

package.json Outdated
@@ -102,6 +108,7 @@
"pixrem": "^4.0.1",
"postcss-banner": "^3.0.0",
"serve-favicon": "^2.4.2",
"sigmund": "^1.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we need sigmund as an explicit dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as for each-async

package.json Outdated
"// JAVASCRIPT": "",
"webpack": "SET \"NODE_ENV=production\" && webpack --progress --colors --display-error-details",
"// TESTS": "",
"test": "mocha src/**/*.test.js test/**/*.test.js --require babel-core/register --require mocha-clean --require test/_setup.js --color",
"test:teamcity": "mocha --reporter mocha-teamcity-reporter src/**/*.test.js test/**/*.test.js --require babel-core/register --require mocha-clean --require test/_setup.js --color",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've got a moch grunt task for this so we should move these mocha build targets into there instead

package.json Outdated
@@ -22,12 +22,17 @@
"scripts": {
"start": "grunt --color --timing",
"dist": "grunt dist --color",
"prebuild": "grunt prebuild:dist --color",
"build": "grunt build:dist --color",
"dist:teamcity": "npm run lint && npm run test:coverage:teamcity && grunt css:dist --color && grunt docs --color && grunt webpack",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dist:teamcity command isn't being used so we should remove it. And also, we have grunt as a task runner for aliasing tasks so we can chain commands in gruntfile rather than here to keep this simpler

Copy link
Contributor

@ediblecode ediblecode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you update the readme with the new commands?

# Conflicts:
#	package-lock.json
#	package.json
@mgallagher1980 mgallagher1980 merged commit aaf9b6e into master Jan 15, 2018
@ediblecode ediblecode deleted the NDS36-teamcity branch January 23, 2018 15:41
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