To foster automated testing: 1 Setup test framework 2 Write a few tests 3...
To foster automated testing:
1 Setup test framework
2 Write a few tests
3 Setup a CI server to run the tests on every pull request.
4 Integrate pull requests with CI server *so you can't merge code with failing tests*.
#4 is key. It makes tests visible and assures they're used.


I've seen many teams stop at step 2. Doing so leads to broken tests. If developers have to run something manually, they'll forget.
Running tests on CI and gating commits keeps testing in the forefront. Tests must pass to merge. And since it's automated, you can't skip it. 👍
For an example of this config with GitHub, check out React Slingshot. We're using:
- Appveyor for Windows CI
- Travis for Linux CI
- Coveralls to monitor code coverage
All three must pass before the merge button is enabled.
https://github.com/coryhouse/react-slingshot