Skip to content
129: How to Test Anything - David Lord episode artwork

Sep 7, 2020 40 min

129: How to Test Anything - David Lord

from Test & Code Hosted by Brian Okken

I asked people on twitter to fill in "How do I test _____?" to find out what people want to know how to test. Lots of responses. David Lord agreed to answer them with me. In the process, we come up with lots of great general advice on how to test just about anything. Specific Questions people asked: What makes a good test? How do you test web app performance? How do you test cookie cutter templates? How do I test my test framework? How do I test permission management? How do I test SQLAlchemy models and pydantic schemas in a FastAPI app? How do I test warehouse ETL code? How do I test and mock GPIO pins on hardware for code running MicroPython on a device? How do I test PyQt apps? How do I test web scrapers? Is it the best practice to put static html in your test directory or just snippets stored in string variables? What's the best way to to test server client API contracts? How do I test a monitoring tool? We also talk about: What is the Flask testing philosophy? What do Flask tests look like? Flask and Pallets using pytest Code coverage Some of the resulting testing strategies: Set up some preconditions. Run the function. Get the result. Don't test external services. Do test external service failures. Don't test the frameworks you are using. Do test your use of a framework. Use open source projects to learn how something similar to your project tests things. Focus on your code. Focus on testing your new code. Try to architect your application such that actual GUI testing is minimal. Split up a large problem into smaller parts that are easier to test. Nail down as many parts as you can. Special Guest: David Lord.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

129: How to Test Anything - David Lord

0:00 40:56

No transcript yet.

Requests help us decide what to transcribe next.

French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? Insurance Exam Queen Melissa Dillon Hi, I am Melissa, the Insurance Exam Queen. I’m the most requested Exam Prep Instructor in the U.S. and have helped thousands of people pass their Property & Casualty and Life & Health insurance exam with ease. With a long string of ONLY 5 star reviews, I’ve become known for my casual and simple teaching style, and my students love the fun memorization techniques, charts, graphs and other visual aides I use to help you understand the material. Most of my students pass their 1st or next time after going through one of my Class Series Packages. I simplify everything, tell you what to study, and even include everything from Study Notes to my own personal Practice Test to help you focus ONLY on what you need to know in order to pass the test. View my packages here: http://www.insuranceexamqueen.com Code Together Code Together Code Together is an interview series that explores challenges at the forefront of cross-architecture development. We’ll talk with those at Intel and across the industry who are forging a path on this often treacherous journey through an increasingly diverse, data-centric world. Join the conversation at oneapi.com. French Voices Podcast | Learn French | Interviews with Native French Speakers | French Culture Jessica: Native French teacher, founder of French Your Way French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Learn French and boost your listening skills as you get the chance to follow a real conversation between native French people talking at normal speed AND customise your French learning experience. All interviews come with questions to test your comprehension, transcription and a list of specific French vocabulary available for free download at http://www.frenchvoicespodcast.com. Get a slice of French culture! Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? Suitable for upper intermediate and advanced students of French.

Frequently asked questions

How long is this episode of Test & Code?

This episode is 40 minutes long.

When was this Test & Code episode published?

This episode was published on September 7, 2020.

Can I download this Test & Code episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.