Skip to content
randomness.hr
PostEnglish
  • 1 min read
  • testing
  • frontend
  • engineering

Testing the Test

Code in automated tests should also be tested — how to keep tests honest by minimising logic, sharing structure, breaking the code on purpose and measuring how good your tests really are.

Code in automated tests should also be tested… right? A lot of developers avoid writing automated code tests, or at least writing proper ones. Having a basic rendering test for a component or a class, generated by your framework, doesn’t count as testing.

The post covers minimising logic in tests, giving them a common structure, testing the test by breaking the code on purpose, mutation testing, TDD, and answering “how good are my tests?”.

This is an excerpt — the full article was published on the Productive Engineering Blog.