Property-Based Testing

Опубликовано: 08 Март 2023
на канале: dotnetsheff
386
6

Property-Based Testing
This talk aims to introduce property-based testing, why you may want to use it, and real-life use cases for including it in code bases.

How do you unit test a function? Typically, one might identify different sets of inputs (for example, for an integer you may have have sets for positive, negative, and zero) and write a single unit test using a single example from each set. Can you be sure your code is correct for the whole set? Maybe it only works for that particular example?
Property-based testing is an approach to testing that involves specifying statements that should always be true (for example, reversing a list twice will give the original result) rather than relying on specific examples. In this talk, I will be giving an introduction to property-based testing, why you would want to use it, and how you might apply it in the real world.

-About the Speaker
Lucy Mair is a senior front-end software developer at Codat, where they work primarily in TypeScript and React, with a bit of F# thrown in to keep things interesting. Their main passions on the programming front are functional programming and testing.

In their free time, they can be found either at their craft bench sewing a new outfit, tucked under a blanket knitting another bobble hat, or enjoying an art class.

  / lucy-mair-123264259  

-
Links
https://dotnetsheff.co.uk
https://www.meetup.com/dotnetsheff/ev...
  / dotnetsheff  

-
Sponsors
https://www.3squared.com/
https://www.aws.com/

-
The Video
Recorded by Adam Bright (  / adam_lx  )
Mixed by Kevin Smith (  / kev_bite  )

-
dotnetsheff

dotnetsheff is a monthly user group focused on software development, particularly in the .NET ecosystem. We welcome people with interests in software development of all ages and levels of experience


Смотрите видео Property-Based Testing онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь dotnetsheff 08 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 386 раз и оно понравилось 6 людям.