MozillaFoundation / engineering-handbook

Mozilla Foundation's Engineering Handbook
https://mozillafoundation.github.io/engineering-handbook/
13 stars 11 forks source link

Write a Chapter: Automated Testing #30

Closed toolness closed 7 years ago

toolness commented 9 years ago

Other questions:

k88hudson commented 9 years ago

Test frameworks/helper libraries

Baseline test coverage

Integration testing

Testing in staging/production

Philosophy

Good resources on testing that align with our values: lets add some

toolness commented 9 years ago

Oh, we should also consider measuring test coverage, and plug the stats in to some kind of dashboard, to incentivize improving test coverage.

simonwex commented 9 years ago

@toolness, @k88hudson hell yeah. :metal:

@toolness do you mind filing some of this functionality against @adamlofting's repo? https://github.com/adamlofting/webmaker-metrics

@Pomax will be stubbing out a sample project that we'll all use to implement these opinions here: https://github.com/MozillaFoundation/unicorn

jbuck commented 9 years ago

Since we're looking at alot of the other Facebook libs for dev, how about their test runner, jest?

toolness commented 9 years ago

I haven't used jest, but I'm cool with investigating it--I am not tied to Mocha. Honestly, though, I don't even mind different projects using different testing tools--which is why I wrote "prefer" in the draft decisions--as long as metrics like coverage % still get passed back to the build dashboard.

jbuck commented 9 years ago

Yeah, I think that's a better metric -- Do we have tests? Do they cover enough of the thing to be useful?