photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

252
active users

#unittest

0 posts0 participants0 posts today
Fake Scrum Stats Memes & Humor<p><a href="https://techhub.social/tags/scrum" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scrum</span></a> <a href="https://techhub.social/tags/scrumteam" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scrumteam</span></a> <a href="https://techhub.social/tags/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://techhub.social/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a> <a href="https://techhub.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://techhub.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://techhub.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> <a href="https://techhub.social/tags/unittests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittests</span></a> <a href="https://techhub.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://techhub.social/tags/unittestcoverage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittestcoverage</span></a> <a href="https://techhub.social/tags/unittestingmuch" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittestingmuch</span></a> <a href="https://techhub.social/tags/Meme" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Meme</span></a> <a href="https://techhub.social/tags/memes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>memes</span></a> <a href="https://techhub.social/tags/Humor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Humor</span></a> <a href="https://techhub.social/tags/humour" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>humour</span></a></p>
Brian Okken :python:<p>Goodbye Michael Foord. <br>You will be missed. <br>- Nice write up by Nicholas Tollervey: <a href="https://ntoll.org/article/my-friend-michael/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ntoll.org/article/my-friend-mi</span><span class="invisible">chael/</span></a><br>- 2021 interview with him: <a href="https://testandcode.com/episodes/145-for-those-about-to-mock-michael-foord" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">testandcode.com/episodes/145-f</span><span class="invisible">or-those-about-to-mock-michael-foord</span></a></p><p><a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://fosstodon.org/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://fosstodon.org/tags/mock" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mock</span></a> <a href="https://fosstodon.org/tags/hoopyfrood" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hoopyfrood</span></a></p>
Jan :rust: :ferris:<p>UwU, I've just found out about `SystemState` in <a href="https://floss.social/tags/Bevy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bevy</span></a> :awesome: </p><p><a href="https://docs.rs/bevy/latest/bevy/ecs/system/struct.SystemState.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.rs/bevy/latest/bevy/ecs/s</span><span class="invisible">ystem/struct.SystemState.html</span></a></p><p>It basically allows you to circumvent (mutable) borrowing issues with `App` and `World` when you have exclusive `World` access.<br>As it turns out, this is especially useful in <a href="https://floss.social/tags/UnitTests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTests</span></a>. 🧪 ✅ </p><p>See next two toots for an example...</p><p>1/3</p><p><a href="https://floss.social/tags/BevyEngine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BevyEngine</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://floss.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a> <a href="https://floss.social/tags/GameDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GameDev</span></a> <a href="https://floss.social/tags/BevyUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BevyUI</span></a> <a href="https://floss.social/tags/UI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UI</span></a></p>
Hugo van Kemenade<p>Oh, and taking inspiration from <a href="https://mastodon.social/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a>, I added colour to <a href="https://mastodon.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> output in this one 🎨</p><p><a href="https://docs.python.org/3.14/whatsnew/3.14.html#unittest" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3.14/whatsnew/</span><span class="invisible">3.14.html#unittest</span></a></p><p> <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/CPython" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CPython</span></a> <a href="https://mastodon.social/tags/Python314" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python314</span></a> <a href="https://mastodon.social/tags/release" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>release</span></a></p>
Jan :rust: :ferris:<p>Code in <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> is so correct that the reason your <a href="https://floss.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> fails is solely because of wrong <a href="https://floss.social/tags/test" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>test</span></a> data.¯\_(ツ)_/¯</p><p>Rust is as close to <a href="https://floss.social/tags/magic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>magic</span></a> as you can get as a <a href="https://floss.social/tags/SoftwareEngineer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineer</span></a>. ✨ </p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a></p>
Denis 🌏<p>hell is unit tests that pass locally and fail inexplicably on CI</p><p><a href="https://hachyderm.io/tags/amCoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>amCoding</span></a> <a href="https://hachyderm.io/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://hachyderm.io/tags/unitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitTest</span></a></p>
Jan :rust: :ferris:<p>Wondering why your (unit) test fails?</p><p>You might have changed the test data, but have you also considered changing the appropriate flags of your class under test when copying an existing test over!?</p><p>(don't ask why I'm telling you this😳)</p><p><a href="https://floss.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineering</span></a> <a href="https://floss.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://floss.social/tags/UnitTests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTests</span></a></p>
Fink :antifa:<p>Let's better not use <a href="https://chaos.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://chaos.social/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a> and instead continue with <a href="https://chaos.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a>.<br>(OK so far)<br>And do wired stuff in the code base we want to test because of that.<br>(The fuck)</p><p>How do you argue against testing with in some places more than 5 stacked "with mock x:"?<br>Yes not even "with mock x, mock y, mock z:".</p><p>Also people arguing with "i like it better" and ignoring actual arguments?</p>
Jan :rust: :ferris:<p><span class="h-card" translate="no"><a href="https://mastodon.online/@shuttle" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>shuttle</span></a></span> I consequently use <a href="https://floss.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a>, where possible.</p><p>Yes, sure, <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> prevents a lot of bugs at compile time already, but not logic bugs.</p><p>For example in <a href="https://floss.social/tags/CSVDiff" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSVDiff</span></a> we have ~70 unit tests and ~12 integration tests. The only "bug report" we have ever gotten was due to a corrupted CSV file (being mistaken with a bug in diff):</p><p>See here (qsv):<br><a href="https://github.com/jqnatividad/qsv/issues/1258#issuecomment-1712924932" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/jqnatividad/qsv/iss</span><span class="invisible">ues/1258#issuecomment-1712924932</span></a></p><p>csv-diff:<br><a href="https://gitlab.com/janriemer/csv-diff" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">gitlab.com/janriemer/csv-diff</span><span class="invisible"></span></a></p><p>In the future I'd like to add property and mutation testing as well 🤓 </p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
Jan :rust: :ferris:<p>Writing some more unit tests in <a href="https://floss.social/tags/Bevy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bevy</span></a> <a href="https://floss.social/tags/BevyEngine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BevyEngine</span></a> for the dragndrop plugin (by cadyn - see below) right now. It is so much fun and I already discovered a small bug (the test is red ❌)! 🙂 🐛 </p><p>Going to fix it now. 💪 </p><p>Hopefully, I'm able to get it to green ✅ Let's see...</p><p><a href="https://github.com/cadyn/bevy_dragndrop" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/cadyn/bevy_dragndro</span><span class="invisible">p</span></a></p><p><a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
Daniel Böhmer<p>Test Driven Development sometimes is a huge disappointment to me:</p><p>I was writing the test first, and then got really surprised that the new method can’t be called because it’s kinda not implemented. How can that be?! 😠 </p><p>Oh, I see … 🤡 </p><p><span class="h-card" translate="no"><a href="https://chirp.social/@Perl" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Perl</span></a></span> <a href="https://ieji.de/tags/testdrivendevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testdrivendevelopment</span></a> <a href="https://ieji.de/tags/tdd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tdd</span></a> <a href="https://ieji.de/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://ieji.de/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a></p>
Jan :rust: :ferris:<p>And this is why <a href="https://floss.social/tags/UnitTests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTests</span></a> and <a href="https://floss.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a> are awesome/necessary (even in <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a>/ <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a>):</p><p>The original requirement:<br>figure out how many columns the _result_ of diffing two CSVs in <a href="https://floss.social/tags/CsvDiff" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CsvDiff</span></a> have.</p><p>Do you see the error-pattern?</p><p>It's<br>- when we have no diff<br>&amp;&amp;<br>- at least one CSV has headers</p><p>which makes sense, because I've implemented the feature in the diffing logic, but at that point header information is already lost (in some other thread).</p><p>Isn't that beautiful!?🥰 </p><p><a href="https://floss.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineering</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
Digital Mark λ ☕️ 🕹 🙄<p><span class="h-card"><a href="https://oldbytes.space/@arclight" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>arclight</span></a></span> I don't usually write black box tests (pinging thru the app with mocks), that's QA. I just unit test by function, what it's supposed to do on happy path and some failure paths.</p><p>Testing anything above one function means if you want to change any workflow your tests break for no good reason.</p><p>I used to care about the XP "test first, see red bar, implement, see green bar" thing but I use less shitty languages than Java now, so it's less urgent.<br><a href="https://appdot.net/tags/tdd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tdd</span></a> <a href="https://appdot.net/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a></p>
Khalid Pro Max⚡️<p><a href="https://mastodon.social/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://mastodon.social/tags/test" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>test</span></a> <a href="https://mastodon.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://mastodon.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a></p>
Jan :rust: :ferris:<p>Unit-testing a web service in <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> - by Julio Merino</p><p><a href="https://jmmv.dev/2023/07/unit-testing-a-web-service.html" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jmmv.dev/2023/07/unit-testing-</span><span class="invisible">a-web-service.html</span></a></p><p><a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://floss.social/tags/WebService" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebService</span></a> <a href="https://floss.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a> <a href="https://floss.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineering</span></a> <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a></p>
Angu<p>Since XCTest does not support async expressions in its assert functions I released SwiftAsyncAsserts Swift package to fill that gap.</p><p>Write more readable testing code for your async type interfaces in Swift.</p><p><a href="https://github.com/angu-software/SwiftAsyncAssert" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/angu-software/Swift</span><span class="invisible">AsyncAssert</span></a></p><p><a href="https://techhub.social/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</span></a> <a href="https://techhub.social/tags/xctest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xctest</span></a> <a href="https://techhub.social/tags/asyncawait" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>asyncawait</span></a> <a href="https://techhub.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://techhub.social/tags/swiftdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swiftdev</span></a> <a href="https://techhub.social/tags/iosdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iosdev</span></a> <a href="https://techhub.social/tags/macdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>macdev</span></a></p>
Jan :rust: :ferris:<p>Have you also verified what happens when you call your method twice?🤓 ✌️ </p><p><a href="https://floss.social/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://floss.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a> <a href="https://floss.social/tags/Quality" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Quality</span></a></p>
Jan :rust: :ferris:<p>SoftwareDev.assert('no unit tests', INSANITY);</p><p>Passed: 1 Failed: 0</p><p><a href="https://floss.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://floss.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineering</span></a> <a href="https://floss.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://floss.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a> <a href="https://floss.social/tags/Quality" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Quality</span></a> <a href="https://floss.social/tags/Insanity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Insanity</span></a> <a href="https://floss.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
xUnit.net<p>It's release day! 🎉</p><p>We just shipped v2 Core Framework 2.5.0, Analyzers 1.2.0, and Visual Studio adapter 2.5.0. This release includes a bunch of quality of life improvements, bug fixes, and an overhauled assertion library that includes new assertions, new overloads, and much better (and most consistent) assertion failure messages.</p><p>Enjoy!</p><p>Release notes:</p><p><a href="https://xunit.net/releases/v2/2.5.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">xunit.net/releases/v2/2.5.0</span><span class="invisible"></span></a><br><a href="https://xunit.net/releases/analyzers/1.2.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">xunit.net/releases/analyzers/1</span><span class="invisible">.2.0</span></a><br><a href="https://xunit.net/releases/visualstudio/2.5.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">xunit.net/releases/visualstudi</span><span class="invisible">o/2.5.0</span></a></p><p><a href="https://fosstodon.org/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <a href="https://fosstodon.org/tags/csharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csharp</span></a> <a href="https://fosstodon.org/tags/fsharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fsharp</span></a> <a href="https://fosstodon.org/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> <a href="https://fosstodon.org/tags/tdd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tdd</span></a></p>
Ed Suominen<p>Writing a <a href="https://hachyderm.io/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> for each significant piece of my <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> code is a pain in the ass. Sometimes it feels like I spend most of my <a href="https://hachyderm.io/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> time writing test code instead of the stuff I actually want.</p><p>But then I add a feature or optimize something and debugging is as simple as making various tests pass again and I’m glad to have invested all that time in the parallel universe of a well-built test suite.</p><p>It’s like wearing an N95 during a pandemic, except for your code instead of your brain.</p>