Tag: unit testing

  • Migrating to Jest test runner

    Migrating to Jest test runner

    I have already shared my comparison of two JavaScript testing solutions where I admitted that I favor Jest over Mocha. Back then, I listed all major differences between those tools summarized with advantages and disadvantages of migrating to Jest: Pros: Simpler API, less boilerplate code. Flexible and easy configuration. Test files executed in isolation. Advanced watch…

  • Different types of software testing

    Different types of software testing

    Software testing helps protect code from incoming bugs and improves general quality of the functionalities exposed to the users. When you look at it from the developer’s standpoint the first thing that comes to mind is unit testing. However it turns out tests come in many flavors. I have already shared in the recap from Advanced…

  • Picking Jest over Mocha – testing tools comparison

    Picking Jest over Mocha – testing tools comparison

    At Automattic we use Mocha to run all tests written for Calypso project which powers WordPress.com. It also includes end-to-end tests, which live in their own repository. We have been using this setup for over 3 years now. I think it is a good moment to revisit this choice. I found this unit testing tools comparison very…

  • Recap: Advanced TDD workshop with Uncle Bob

    Recap: Advanced TDD workshop with Uncle Bob

    Earlier this week I attended a three day Advanced TDD workshop delivered by Uncle Bob Martin. The course explained the principles and practices of Test-driven development as described in his book, Agile Software Development, Principles, Patterns, and Practices. It was an amazing experience, packed with great knowledge, so I couldn’t resist sharing my notes. Uncle…