Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

What is TDD?

Test-Driven Development (TDD) means test first, code next. This means, with the TDD approach, we first write the unit test before writing any code. Then, we execute that unit test; it will definitely fail (RED) because we have not written any code.

Next, we write the code to match that unit test (test case) and execute that test again; this time, it will pass (GREEN). Next, we write one more test case (unit test) for the same component, then write the code, and so on. Finally, once we finish writing all test cases and code, we finish the development of that component.

We can illustrate this approach with a diagram:

TDD is a unit ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content