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

TDD is easy!

TDD is easy!

You can do it without any framework.

It takes 15 lines of code.

To prove this point I've shown an example of TDD in assembly on Commodore 64.

In case you need a testing framework after all, feel free to check the 64spec library (http://64bites.com/64spec).

85977ebfe59c2ee669f2196930f1a701?s=128

Michał Taszycki

May 17, 2016
Tweet

Transcript

  1. None
  2. None
  3. 1. Change border color to green

  4. 2. Test the code 1. Change border color to green

  5. 1. Change border color to green 2. Test the code

    3. Change the border to red on failure
  6. None
  7. 4. Make the test pass 1. Change border color to

    green 2. Test the code 3. Change the border to red on failure
  8. 1. Change border color to green 2. Test the code

    3. Change the border to red on failure 4. Make the test pass
  9. TDD in 2016

  10. TDD in 2016

  11. None
  12. 1. Describe your tests

  13. 1. Describe your tests 2. Test your code

  14. 1. Describe your tests 2. Test your code

  15. 1. Describe your tests 2. Test your code 3. Make

    tests pass
  16. 1. Describe your tests 2. Test your code 3. Make

    tests pass
  17. How to test the Framework?

  18. None
  19. Automation is easy

  20. 1.Use Go for parallel execution 2.Save output on a virtual

    floppy 3.Crash the Emulator [sic!] 4.Gather results 5.??? 6.Profit
  21. Keep Old Computers Alive! mehowte  Michał Taszycki on