(Sorry for the double posting I wasn't sure of the best mailing list to use. Please feel free to pass this on.)
Hi All,
Many moons ago, as part of the Code Monkeys lunchtime sessions in Ashworth, I did a short presentation and interactive session on unit testing, specifically looking at testing code in Python (cos that's my main language) and making use of some examples
from Martin Jones' then-recent book ("Effective Python Development for Biologists" - no bookshelf should be without it!).
After a recent chat with Bryan Wee I found my old notes and promised I'd do a re-run of the session. For those who don't remember Code Monkeys it's nothing formal, just an hour where I'll show you some stuff and we'll discuss and write some tests together.
To participate you just need some way to edit and run Python 3.6+ (a shell on Eddie for example) and this link:
https://eu.bbcollab.com/guest/e24e7666574e448eaccb5eaa320ba504
Start time is Friday 14th May @12:30
Also I'll be putting some updated bits and pieces on to GitHub:
Why should you care about unit and regression tests for your code? In short, testing will help you write better, cleaner, more maintainable code, even for small projects. Have you ever spent hours searching your code for a bug, inserting hundreds of 'print()'
statements to try and root out the problem, starting to doubt your own memory and sanity as you stare at inexplicable errors and garbled output files? I've not done this in years, and learning the value of unit testing is one of the big reasons why.
Tim Booth
Developer and Bioinformatician
Edinburgh Genomics
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.