Developing Test Driven Development

describe(‘blog’, function() {

it(‘should be a blog about testing’, function() {

Test Driven Development is a powerful approach to writing code: write a test, write your code, test your code, refactor/write more tests/write more code. If you’re just starting to implement test driven development, testing can feel like the hardest part. When your test is failing, not because of an error in the code you’re testing, but because of an error in the test you wrote, you may wonder what you’re gaining. There are also many testing libraries to choose from, and it can be difficult to know which is the best for your application.

Writing tests as you are writing code can be frustrating, but it can also be a helpful guide. Although it may require a little practice, once you have the tests in place, it’s easier to write your code. Writing tests can also make you really think through what you’re trying to accomplish with the code you’re testing. It may be that you find opportunities to refactor as you are structuring your tests. Despite some frustrations, implementing Test Driven Development can help you develop better apps.




Test passed! This is a blog about testing.

Show your support

Clapping shows how much you appreciated Sanford Bradshaw’s story.