Session

Cover your "legacy" scripts with tests

Testing your code with Pester is a great practice to pick up, but where do you start? In this talk I will show you patterns that will help you apply tests to your existing code base, to make it safer to refactor and more maintainable.

---

In this talk I go over multiple patterns and techniques that can be applied when adding tests to existing scripts. It’s highly practical with almost no slides and many code examples. I start from showing basic patters (such as input -> function -> mock), and then expand on them by adding custom assertions, returning objects with assertable methods, testing self-contained scripts, testing in module scope, and concluding with few practices that should be avoided.

Jakub Jares

When the tool does not exist, invent it.

Prague, Czechia

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top