4 ms·
I don't have easy REPL opportunities for speeding up my cycles in the language/environment I have to work with. :/ Martin Fowler discussed it recently, note th
by EdSharkey 5y ago
I don't have easy REPL opportunities for speeding up my cycles in the language/environment I have to work with. :/
Martin Fowler discussed it recently, note the section that discusses about sociable vs solitary tests: https://martinfowler.com/articles/2021-test-shapes.html https://martinfowler.com/articles/2021-test-shapes.html
My team is oriented towards solitary. For unit tests, mocks stand-in for collaborators with the system under test. For integration tests, databases and queues are realistically simulated with locally running instances and downstream services we call are wiremocked with local configs pointing service clients to those mocks. It's an incredibly effective way to produce reliable, fully tested code. It's also incredibly costly execution time-wise.
James Shore has a nice take on sociable tests; I interpret what he's produced is like a mishmash of unit and integration tests. I have trouble making my brain work that way, but I am intrigued given his impressively low test run times. There is something special there, I feel it just needs a sexy paint job for people to take notice. https://www.youtube.com/watch?v=jwbKSiqG0DI https://www.youtube.com/watch?v=jwbKSiqG0DI
I liked this blog post on the topic as well: https://merge-conflict.com/post/sociable-unit-testing/ https://merge-conflict.com/post/sociable-unit-testing/