Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gilang - Playing Unit Test with Spek

Gilang - Playing Unit Test with Spek

Android VIP

January 12, 2019
Tweet

More Decks by Android VIP

Other Decks in Programming

Transcript

  1. And then . . . Automatic Testing such as unit

    testing and instrumentation testing. • Write the main code • Write the test code
  2. TDD (Test Driven Development) is an application development method developed

    by testing. • Writing Tests • Running Tests • Write down the Code • Running Tests • Refactor Code
  3. Advantages of using TDD • More Productive • Code is

    neater • Safer Refactoring • Minimizing Bugs • Documentation
  4. Understand the Testing Pyramid Illustrates how your app should include

    the three categories of tests: small, medium, and large https://developer.android.com/training/testing/fundamentals
  5. Spek Spek is a specification framework that allows you to

    easily define specifications in a clear, understandable, human readable way. https://spekframework.org
  6. given, on, It • name = name of class •

    given = context • on = action • it = actual test