Property-Based Testing

Publicado el: 08 marzo 2023
en el canal de: 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


En esta página del sitio puede ver el video en línea Property-Based Testing de Duración hora minuto segunda en buena calidad , que subió el usuario dotnetsheff 08 marzo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 386 veces y le gustó 6 a los espectadores. Disfruta viendo!