-
Notifications
You must be signed in to change notification settings - Fork 1
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
Chores/test-coverage-setup-#151817717 #186
Conversation
56c1977
to
81d17c1
Compare
81d17c1
to
519f701
Compare
can we setup codeclimate independently of semaphore? as a separate github integration? It might make it easier to understand the results Here's some documentation: https://docs.codeclimate.com/docs/github-pull-requests#section-pull-request-statuses |
Looks like code climate costs money for >4 users committing code https://codeclimate.com/quality/pricing/. I wonder how that was handled in the past We could just do chris, cat, me, and martin, and not analyze josh's code? See how it goes and if we find it super valuable we can potentially procure it. alternatively, are there free test coverage reporting packages for ruby and js? |
Great we have coverage now after configuring semaphore + installing simplecov (ruby) and istanbul (for lcov js reporting) -- but for some reason some JS tests fail even if no actual feature code was changed. 🤔 |
@chrisdolendo we had been getting some red text running tests locally. seemed like warning-type things. I wonder if changing the packages somehow affected the tolerance of those tests |
@akegan good call I will look into the packages |
fa03277
to
30c775a
Compare
30c775a
to
9569003
Compare
I figured out the issue with the e2e test from research -- essentially using puppeteer (which e2e tests uses) and jest with code coverage enabled breaks the test.
I tried implementing puppeteer-to-istanbul but it didn't work, because istanbul is already baked in to jest so it conflicted, and also needs the latest node version. SO, I turned on coverage just for the unit tests and did not include e2e in it until there a solution for jest. Code coverage went up to 76% after including JS tests. |
@@ -65,10 +65,10 @@ | |||
"webpack-dev-server": "^2.9.3" | |||
}, | |||
"scripts": { | |||
"unit": "jest --testPathPattern=.*.test.js$", | |||
"unit": "jest --testPathPattern=.*.test.js$ --coverage", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with python tests we generally ran the tests and the coverage separately. Is there a reason why you're combining it into one line here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akegan to feed two birds with one seed - but I can separate them -- would you like me to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only concern is that it might be hard to distinguish on semaphore if the tests are failing due to tests failing or due to coverage not passing. would that be an issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…b.com/Exygy/sf-dahlia-lap into chores/test-coverage-setup-#151817717
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks @chrisdolendo !
No description provided.