I watched an interesting video on youtube the other day about improving unit testing practices in Java and got serious tool envy!
https://www.youtube.com/watch?v=D-xra_X9Nwg
One bit I liked was the bit about splitting tests into given-when-then statements.
This is a recommended format for acceptance test descriptions from non-technical users (e.g. given the tests stop after 20 seconds, when I resume then it starts where it left off).
This helps highlight if you are testing too much since you should only have assertions in then (ideally 1, or you are testing 1 state) and for me I think it might help tidy up my tests since you can quickly glance and identify setup (given), code under test (when) and the assertions (then).
I will likely write up a bit more detail in a blog post once I have played a bit more but was curious to get some feedback. Here is my interpretation in LabVIEW, anyone else have any better ideas?
James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com