TDD the RITE Way

Eric Elliott
Feb 28, 2017 · 9 min read
Red, Green, Refactor

On Frameworks

TDD the RITE Way

Readable

Tip: Answer the 5 Questions Every Unit Test Must Answer

Tip: Favor equality assertions over fancy assertion types.

Tip: Explicitly name your actual and expected values.

Isolated / Integrated

Mocking is a code smell.

Isolate side effects from business rules and domain logic.

Instead of Mocking:

As you make your app more testable, it should also make the app simpler and more maintainable. TDD should improve architecture: never harm it.

What About Angular?

Functional Tests Must be Integrated

Thorough

Explicit

Conclusion

Next Steps


JavaScript Scene

JavaScript, software leadership, software development, and related technologies.

Thanks to JS_Cheerleader.

Eric Elliott

Written by

Make some magic. #JavaScript

JavaScript Scene

JavaScript, software leadership, software development, and related technologies.