ALTERNATE UNIVERSE DEV

Enjoy the Vue

Episode 60: Testing in Context with Lachlan Miller (Part 1)

Key Points From This Episode:

  • An introduction to today’s special guest, Lachlan Miller.
  • Given the hypothetical opportunity to test only one thing about an app, Ben, Tessa, and Lachlan weigh in.
  • Lachlan suggests doing a screenshot test of the application using a tool like Percy.
  • Hear about the distinction between screenshot tests and snapshot tests.
  • The panel reflects on whether developers should test their own code or have a QA team assume that responsibility.
  • The spectrum of testing, from end-to-end to the more fine-grained and individual unit tests.
  • Learn about Testing Library Vue, a recently popular alternative to a library like Cypress.
  • The benefits of having accessibility testing built in, for both developers and users.
  • How to decide where your priorities lie based on which tests you focus on.
  • Lachlan explains how he uses unit tests to drive development while end-to-end tests function more like a quality tool.
  • How you can use the Pareto effect to make these decisions as a developer: how can you put in 20 percent effort for 80 percent output?
  • Some of the panel’s favorite resources and methodologies for writing Vuex tests.

Tweetables:

  • “If we think of testing as not just the developer's responsibility but everyone’s responsibility, it's about quality assurance and confidence. Everyone in the organization wants to be involved in the quality of their product, which is why visual tests can be very useful.” — @Lachlan19900 [0:05:31]
  • “If you are interested in the more end-to-end tests but you don't want to spin up a full browser, I would definitely recommend checking out Testing Library Vue, which is running on top of Vue Test Utils.” — @Lachlan19900 [0:15:45]
  • “The most important thing is you are confident in your app. Everyone's going to have a different version of confidence, but if you have a feature and if it breaks and it would cause a bad thing to happen to your business, you probably want to have a test around that.” — @Lachlan19900 [0:19:56]
  • “A good rule of thumb is the more you can test your application or your apps in a production-like manner, it's going to be better.” — @Lachlan19900 [0:30:36]

Resources mentioned:

Special Guest: Lachlan Miller.

Episode source