!!Con West 2020 - Matías Lang: Delete all code! 100% testing coverage, the lazy way!

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=A-cjMRsHcXI



Duration: 11:33
15 views
0


Presented at !!Con West 2020: http://bangbangcon.com/west

What do you do when your year-end bonus is directly related to the testing coverage of your project? Writing more tests, although expected, sounded pretty boring. Instead of that, I focused on writing a (totally useless) tool that deletes all untested branches on your code, therefore giving 100% coverage to your project, and not affecting its (tested) functionality!

In this talk, we’ll learn how to write code that uses AST manipulation to modify other pieces of code, and the problems of implementing this in Python. Also, we’ll discuss how an initially useless side project turned out to be not so useless.

#bangbangcon #bangbangconwest #bangbangconwest2020




Other Videos By Confreaks


2022-09-24!!Con West 2020: Closing remarks
2022-09-24!!Con West 2020: Lee Butterman - Drag Makeovers, via AI!
2022-09-24!!Con West 2020: Naomi Saphra - Get Hooked On Neural Net Inspection! That was a pun!
2022-09-24!!Con West 2020: Maria Mishurenko - It's alive, but not for long!!
2022-09-24!!Con West 2020: Tom Verbeure - Cisco Purses Cubed!
2022-09-24!!Con West 2020: Jessica Garson - How I solved my NYC parking problem with Python!
2022-09-24!!Con West 2020: Tiffany Tseng - Packages, but in 3D!
2022-09-24!!Con West 2020: Sarah Nguyen - linkRot!! Dancing the patterns of digital decay
2022-09-24!!Con West 2020: Dr. Kate Compton - Of Muppets, Metaballs, and Ballroom Dance!
2022-09-24!!Con West 2020 - Jordan Hendricks: Tex-Mex and malloc(3C): Restaurant Hosts and Memory Allocators!
2022-09-24!!Con West 2020 - Matías Lang: Delete all code! 100% testing coverage, the lazy way!
2022-09-24!!Con West 2020 - Kathleen Tuite: The hacks behind my 3D reconstructed wedding cake topper!
2022-09-24!!Con West 2020 - Erin Rose Glass: def tech_liberation(): teaching agency in a programmed world!
2022-09-24!!Con West 2020 - Opening Remarks, day 2
2022-09-22!!Con West 2020 - Jeremy Apthorp: Curses!!
2022-09-22!!Con West 2020 - Phil Warren: Beyond the Black Rainbow: Using Booleans to Photograph IR Rainbows!
2022-09-22!!Con West 2020 - don-E Merson: Sonification: You Can See Your Complex Data with Sound!!
2022-09-22!!Con West 2020 - Lito Nicolai: ba-ding!
2022-09-22!!Con West 2020 - Spencer Alves: Reverse engineering game formats for fun and profit! (or just fun)
2022-09-22!!Con West 2020 - Wesley Aptekar-Cassels: Plotty Bird: Making Modern Games on Retro Pen Plotters!
2022-09-22!!Con West 2020: Nick Fitzgerald - Writing Programs! That Write Other Programs!!