Speaker

Jakub Jares

Jakub Jares

When the tool does not exist, invent it.

Prague, Czechia

Actions

Senior Software Engineer at Microsoft. Ex. Microsoft MVP. Developing testing tools for C# and dotnet (dotnet test, vstest, mstest). Owner of the Pester testing framework and Profiler performance module. I love speaking at conferences, drinking coffee and beer.

Area of Expertise

  • Information & Communications Technology

Topics

  • Testing
  • Software testing
  • PowerShell
  • PowerShellCore
  • dotNet
  • .NET
  • performance

10 things you should know about Profiler

Profiler is a powerful tool to make your scripts faster. This session will show you 10 things that Profiler can do to help you speed up your script. You will see how to analyze your scripts, how to investigate the collected data in various ways, and how to find what is slowing you down.

After this session you will know how to use Profiler to make your scripts faster.

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.

Going past Profiler, profiling PowerShell code using PerfView.

You already optimized all your code using Profiler, and maybe you rewrote some code to C#, but the code is still slower than you'd like. Now is the right time to start perfView. But how do you do anything with that daunting tool?

This session will teach you the basics of collecting and interpreting traces with perfView and will arm you with knowledge for profiling code of binary cmdlets and any other C# code.

Make your scripts faster with Profiler

PowerShell is usually fast enough, until it isn't. And once you hit that wall it's very hard to know what is slowing your script down.

So I wrote a Profiler module that helps with that. It measures all your PowerShell code, no matter if it is in a file or in a module. The module will capture every line of code that was executed, and show you which lines of code are slowing you down.

In this session I will show the module, teach you how to use it, and will show a real-life example of optimizing a module to run twice as fast.

New assertions in Pester

Pester ships with a new set of assertions that can do a whole range of cool things. Come see this session how you can easily check things in collections, time ranges, or compare whole objects. And the assertions are functions like any other so it is easier than ever to add your own assertion.

After seeing this session your will know how to use the new assertions in Pester, and how to migrate to them.

Pester 5 vs Pester 4

Pester 5 is more than a gradual update over Pester 4. It brings some new rules and breaking changes. This session will point out all the most asked questions regarding discovery, how to use foreach to create new tests, and why some variables are not defined in the places where you'd expect them.

After watching this session, you will be confident in how to use Pester 5, and how to migrate from Pester 4.

Pester what is new?

This session will showcase the most interesting new features in Pester 5 that were added in the past year. You will see a demo of each and learn why you should check the feature out.

For example how to use the new colored output in GitHub and AzureDevOps.

So come and join me, and learn about the new things that you might have been missing.

What's new in Pester v5?

Pester 5 brings multiple new features, many fixes and also some significant breaking changes. In this talk I will demo the most significant improvements to the framework, point out differences from version 4 and give a quick guide to migrating to the new framework version.

Youtube URL - https://www.youtube.com/watch?v=xC8SfYHQ_i4

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