shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

288
active users

#unittesting

0 posts0 participants0 posts today
Ramin Honary<a href="https://www.well-typed.com/blog/2023/04/falsify/%20" rel="nofollow noopener noreferrer" target="_blank">Property-based testing in Haskell with QuickCheck <code>falsify</code></a> <p>A few days ago, Edsko de Vries of <em>Well-Typed</em> published an in-depth article on <strong>property-based software testing,</strong> with a focus on the concept of “shrinking.”</p><p>In brief, property-based testing is sort-of like fuzz testing but for algorithms and protocols. Like fuzz testing, random test cases are procedurally generated, but unlike fuzz testing, the test cases are carefully designed to verify whether a software implementation of an algorithm satisfies a specific property of that algorithm, such as:</p><ul><li>“this function always fails if the index is larger than the array”</li><li>“this function always returns a result in <code>n*log(n)</code> number of iterations for input dataset of size <code>n</code>“</li><li><p>“the sequence of log messages is guaranteed to obey this rules of this particular finite-state automata: (connect | fail) -&gt; (send X | fail) -&gt; (receive Y | receive Z | fail) -&gt; success .”</p></li></ul><p><strong>Shrinking</strong> is the process of simplifying a failed test case. If you have found some input that makes your function return a value when it should have thrown an exception, or produce a result that does not satisfy some predicate, then that input is a “counterexample” to your assertion about the properties of that function. And you may want to be able to “shrink” that counterexample input to see if you can cause the function to behave incorrectly again but with a simpler input. The “<a href="https://hackage.haskell.org/package/QuickCheck%20" rel="nofollow noopener noreferrer" target="_blank">QuickCheck</a>“ library provides a variety of useful tools to let you define property tests with shrinking.</p><p>Defining unit tests with such incredible rigor takes quite a lot of time and effort, so you would probably do not want to use property-based testing for your ordinary, every-day software engineering. If you are, for example, being scrutinized by the US Department of Government of Efficiency, you would likely be fired if you were to take so much time to write such high-quality software with such a strong guarantee of correctness.</p><p>But if you are, for example, designing a communication protocol that will be used in critical infrastructure for the next 10 or 20 years and you want to make sure the reference implementation of your protocol is without contradictions, or if you are implementing an algorithm where the mathematical properties of the algorithm fall within some proven parameters (e.g. computational complexity), property-based testing can give you a much higher degree of confidence in the correctness of your algorithm or protocol specification.</p><p><a class="hashtag" href="https://fe.disroot.org/tag/tech" rel="nofollow noopener noreferrer" target="_blank">#tech</a> <a class="hashtag" href="https://fe.disroot.org/tag/software" rel="nofollow noopener noreferrer" target="_blank">#software</a> <a class="hashtag" href="https://fe.disroot.org/tag/haskell" rel="nofollow noopener noreferrer" target="_blank">#haskell</a> <a class="hashtag" href="https://fe.disroot.org/tag/welltyped" rel="nofollow noopener noreferrer" target="_blank">#WellTyped</a> <a class="hashtag" href="https://fe.disroot.org/tag/quickcheck" rel="nofollow noopener noreferrer" target="_blank">#QuickCheck</a> <a class="hashtag" href="https://fe.disroot.org/tag/unittesting" rel="nofollow noopener noreferrer" target="_blank">#UnitTesting</a> <a class="hashtag" href="https://fe.disroot.org/tag/propertytesting" rel="nofollow noopener noreferrer" target="_blank">#PropertyTesting</a></p>
Uli Kusterer (Not a kitteh)<p>Protip: If you have test data in your C++ unit tests that needs to be passed into some C API, be consistent and declare it as vector&lt;uint8_t&gt; testData, and always call testData.size() on it, not sizeof(testData) like you do elsewhere for C-style arrays of uint8_t testData[].</p><p><a href="https://chaos.social/tags/CPlusPlus" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CPlusPlus</span></a> <a href="https://chaos.social/tags/C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://chaos.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://chaos.social/tags/unitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitTesting</span></a></p>
Rachel Brindle<p>The testing attachments proposal has been accepted (with modifications)! To be attached to some upcoming swift version! <a href="https://forums.swift.org/t/accepted-with-modifications-st-0009-attachments/79193" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">forums.swift.org/t/accepted-wi</span><span class="invisible">th-modifications-st-0009-attachments/79193</span></a></p><p>No real negative feedback, either. I guess people quickly became attached to the idea.</p><p>There were some disagreements about naming in the review, but I’m glad that we resolved that amicably. I’d really hate it if we were too attached to an idea to come to an agreement.</p><p><a href="https://hachyderm.io/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://hachyderm.io/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</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/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Rachel Brindle<p>Adding Attachments to Swift Testing is up for review! It's my first time being a review manager.</p><p>Forum thread: <a href="https://forums.swift.org/t/st-0009-attachments/78698" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">forums.swift.org/t/st-0009-att</span><span class="invisible">achments/78698</span></a></p><p>Proposal: <a href="https://github.com/swiftlang/swift-evolution/blob/main/proposals/testing/0009-attachments.md" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/swiftlang/swift-evo</span><span class="invisible">lution/blob/main/proposals/testing/0009-attachments.md</span></a></p><p><a href="https://hachyderm.io/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://hachyderm.io/tags/swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swift</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/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Aral Balkan<p>Quick heads up: I just deprecated @small-tech/tape-with-promises (for adding promise support to Tape 4.x).</p><p><a href="https://www.npmjs.com/package/@small-tech/tape-with-promises" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">npmjs.com/package/@small-tech/</span><span class="invisible">tape-with-promises</span></a></p><p>Tape version 5.x supports promises so my little module is no longer necessary unless you’re stuck on v4.x.</p><p>What’s tape? A neat little JavaScript unit testing framework I like:</p><p><a href="https://github.com/tape-testing/tape" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/tape-testing/tape</span><span class="invisible"></span></a></p><p>Already use tape? Does your test runner need more monkeys and bananas? Try my tap-monkey module:</p><p><a href="https://codeberg.org/small-tech/tap-monkey#readme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/small-tech/tap-mo</span><span class="invisible">nkey#readme</span></a></p><p>🙊🍌</p><p><a href="https://mastodon.ar.al/tags/tape" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tape</span></a> <a href="https://mastodon.ar.al/tags/nodeJS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nodeJS</span></a> <a href="https://mastodon.ar.al/tags/unitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitTesting</span></a> <a href="https://mastodon.ar.al/tags/tapMonkey" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tapMonkey</span></a></p>
JuanluElGuerre :verified:<p>🚀 Ready to master unit testing in .NET? Learn how to use <a href="https://hachyderm.io/tags/xUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xUnit</span></a>, <a href="https://hachyderm.io/tags/NSubstitute" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NSubstitute</span></a>, and <a href="https://hachyderm.io/tags/AutoFixture" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AutoFixture</span></a> in this step-by-step guide with HangfireDemoApi. From mocking to background tasks, we’ve got you covered!<br>Read more 👉 <a href="https://wp.me/p29SK-Wy" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wp.me/p29SK-Wy</span><span class="invisible"></span></a> <br><a href="https://hachyderm.io/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> <a href="https://hachyderm.io/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://hachyderm.io/tags/developers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developers</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p><span class="h-card" translate="no"><a href="https://linuxrocks.online/@haircode" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>haircode</span></a></span> <a href="https://mastodon.social/tags/typescript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>typescript</span></a> <a href="https://mastodon.social/tags/tailwind" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tailwind</span></a> <a href="https://mastodon.social/tags/reactRouter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reactRouter</span></a> <a href="https://mastodon.social/tags/docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>docker</span></a> <a href="https://mastodon.social/tags/graphql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>graphql</span></a> <a href="https://mastodon.social/tags/java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>java</span></a> <a href="https://mastodon.social/tags/nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nix</span></a> <a href="https://mastodon.social/tags/vim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vim</span></a> <a href="https://mastodon.social/tags/mac" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mac</span></a> <a href="https://mastodon.social/tags/ios" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ios</span></a> <a href="https://mastodon.social/tags/iphone" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>iphone</span></a> <a href="https://mastodon.social/tags/express" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>express</span></a> <a href="https://mastodon.social/tags/gcp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gcp</span></a> <a href="https://mastodon.social/tags/reactNative" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reactNative</span></a> <a href="https://mastodon.social/tags/nativeApps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nativeApps</span></a> <a href="https://mastodon.social/tags/appStore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>appStore</span></a> <a href="https://mastodon.social/tags/apple" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>apple</span></a> <a href="https://mastodon.social/tags/aapl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aapl</span></a> <a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/vercel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vercel</span></a> <a href="https://mastodon.social/tags/netlify" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>netlify</span></a> <a href="https://mastodon.social/tags/heroku" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>heroku</span></a> <a href="https://mastodon.social/tags/nevernester" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nevernester</span></a> <a href="https://mastodon.social/tags/10xDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>10xDev</span></a> <a href="https://mastodon.social/tags/10xdevelopers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>10xdevelopers</span></a> <a href="https://mastodon.social/tags/codeReview" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codeReview</span></a> <a href="https://mastodon.social/tags/pairProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pairProgramming</span></a> <a href="https://mastodon.social/tags/oop" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oop</span></a> <a href="https://mastodon.social/tags/earlyReturns" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>earlyReturns</span></a> <a href="https://mastodon.social/tags/guardClauses" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>guardClauses</span></a> <a href="https://mastodon.social/tags/flutter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flutter</span></a> <a href="https://mastodon.social/tags/angular" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>angular</span></a> <a href="https://mastodon.social/tags/neverNesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neverNesting</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/unitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitTesting</span></a> <a href="https://mastodon.social/tags/cssFrameworks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cssFrameworks</span></a> <a href="https://mastodon.social/tags/jest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>jest</span></a> <a href="https://mastodon.social/tags/jetbrains" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>jetbrains</span></a> <a href="https://mastodon.social/tags/neoVim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neoVim</span></a> <a href="https://mastodon.social/tags/wordpress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wordpress</span></a> <a href="https://mastodon.social/tags/SQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQL</span></a> <a href="https://mastodon.social/tags/postgresql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>postgresql</span></a> <a href="https://mastodon.social/tags/rdbms" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rdbms</span></a> <a href="https://mastodon.social/tags/rubyOnRails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubyOnRails</span></a></p>
RJ<p>"Keeping tests valuable: Avoid implementation details!" <a href="https://thepragmaticengineer.hashnode.dev/keeping-tests-valuable-avoid-implementation-details" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thepragmaticengineer.hashnode.</span><span class="invisible">dev/keeping-tests-valuable-avoid-implementation-details</span></a> <a href="https://fosstodon.org/tags/unittesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittesting</span></a> <a href="https://fosstodon.org/tags/softwaredevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>softwaredevelopment</span></a> <a href="https://fosstodon.org/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://fosstodon.org/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a></p>
🧿🪬🍄🌈🎮💻🚲🥓🎃💀🏴🛻🇺🇸<p>If you use feature flags your automated tests are worthless unless you run them against every possible combination of feature flags.</p><p><a href="https://mastodon.social/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a> <a href="https://mastodon.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a> <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/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://mastodon.social/tags/softwaredevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>softwaredevelopment</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/softwareengineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>softwareengineering</span></a> <a href="https://mastodon.social/tags/engineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>engineering</span></a> <a href="https://mastodon.social/tags/webDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webDev</span></a> <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://mastodon.social/tags/AutomatedTests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AutomatedTests</span></a> <a href="https://mastodon.social/tags/tdd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tdd</span></a> <a href="https://mastodon.social/tags/unittesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittesting</span></a> <a href="https://mastodon.social/tags/tests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tests</span></a> <a href="https://mastodon.social/tags/featureFlag" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>featureFlag</span></a> <a href="https://mastodon.social/tags/feature" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>feature</span></a> <a href="https://mastodon.social/tags/flag" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flag</span></a></p>
Rachel Brindle<p>Already filed my first issue: The Test struct needs a public initializer. There's a workaround so that I can keep going, but it uses something that's explicitly marked as only for the Test macro.</p><p><a href="https://github.com/apple/swift-testing/issues/521" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/apple/swift-testing</span><span class="invisible">/issues/521</span></a></p><p><a href="https://hachyderm.io/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://hachyderm.io/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Rachel Brindle<p>Implementing this resultBuilder-based Testing DSL in public: <a href="https://github.com/Quick/Quick/pull/1292" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Quick/Quick/pull/12</span><span class="invisible">92</span></a></p><p><a href="https://hachyderm.io/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://hachyderm.io/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Manuel Landesfeind<p>Hive mind, do you employ (unit) testing in data analysis scripts? If so, how and what are your best practices? </p><p>We frequently develop packages with unit testing. But equally often write "run-once" analysis scripts/notebooks. Those often contain functions and (more often) assumptions on loaded data but we rarely test/check these. This is something to improve but I wonder how others handle this.</p><p><a href="https://genomic.social/tags/RStats" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RStats</span></a> <a href="https://genomic.social/tags/rmarkdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rmarkdown</span></a> <a href="https://genomic.social/tags/testthat" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testthat</span></a> <a href="https://genomic.social/tags/assertthat" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>assertthat</span></a> <a href="https://genomic.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://genomic.social/tags/jupyter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>jupyter</span></a> <a href="https://genomic.social/tags/unittesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittesting</span></a> <a href="https://genomic.social/tags/datascience" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>datascience</span></a> <a href="https://genomic.social/tags/bioinformatics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bioinformatics</span></a></p>
Rachel Brindle<p>Woo! I’m so excited to announce I’ll be presenting at One More Thing conf during WWDC week!</p><p>I’ll be talking about testing, and specifically about testing SwiftUI and Swift concurrency!</p><p>I’ll also be a “floating expert” there on testing in general.</p><p>Hope to see you there!</p><p><a href="https://hachyderm.io/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://hachyderm.io/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftUI</span></a> <a href="https://hachyderm.io/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> <a href="https://hachyderm.io/tags/OMTConf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OMTConf</span></a></p>
carlyn<p>“The best time to build a test was before the first commit. The next best time is now.” – Proverbious the Commitor, probably</p><p><a href="https://www.whynotestflight.com/excuses/hello-usd-part-13-test-test-test/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">whynotestflight.com/excuses/he</span><span class="invisible">llo-usd-part-13-test-test-test/</span></a></p><p><a href="https://mastodon.social/tags/XCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCode</span></a> <a href="https://mastodon.social/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SwiftLang</span></a> <a href="https://mastodon.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> <a href="https://mastodon.social/tags/Equatable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Equatable</span></a></p>
Todd A. Jacobs | Rubyist<p><span class="h-card"><a href="https://ruby.social/@davetron5000" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>davetron5000</span></a></span> In what way are you differentiating this from <a href="https://ruby.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> or functional testing? I agree you should never have to test core Ruby or Rails features, but doesn't a view test exercise whatever you're bumping against here?</p>
Brad Wilson<p>Feeling a bit confused by my decision making in <span class="h-card"><a href="https://fosstodon.org/@xunit" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>xunit</span></a></span>.</p><p>This passes:</p><p>`Assert.Equal(42, 42L);`</p><p>This fails:</p><p>`Assert.Equivalent(42, 42L);`</p><p>That feels wrong. It's either backward, or both should pass. Equivalent was designed to be the "less strict" version of things, so why did I decide that equal values of different intrinsic types were a failure?</p><p>Equal has passed for 15 years. Equivalent is relatively new. I'm leaning towards both passing.</p><p>What do you think I should do?</p><p><a href="https://mastodon.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a> <a href="https://mastodon.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Jon Reid<p>💞 Why did I become obsessed with <a href="https://iosdev.space/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> for iOS? Here's what makes me tick <a href="https://qualitycoding.org/podcast-ios-unit-testing-champion/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qualitycoding.org/podcast-ios-</span><span class="invisible">unit-testing-champion/</span></a> <a href="https://iosdev.space/tags/ExtremeProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ExtremeProgramming</span></a></p>
Duncan Babbage<p>Sure wish there was a decent way to create parameterized <a href="https://iosdev.space/tags/XCTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>XCTest</span></a> unit tests. I've got an array of test data, want to run the same method on each of about ten items and assert that a particular outcome occurs. </p><p>Found this approach but too much of a kludge for me:<br><a href="https://kazaimazai.com/parametrized-xctest-swift/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kazaimazai.com/parametrized-xc</span><span class="invisible">test-swift/</span></a></p><p>Not sure whether to just duplicate ten tests, one for each test data item, or to put a for...in in an XCTest and deal with the lack of specificity for failures. Hgn. <a href="https://iosdev.space/tags/Swift" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Swift</span></a> <a href="https://iosdev.space/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a></p>
Sid :ve:<p>(My <a href="https://techhub.social/tags/introduction" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>introduction</span></a> reposted from a previous instance)</p><p>I'm Siddarth, a <a href="https://techhub.social/tags/SoftwareEngineer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineer</span></a> in India. Love discussing <a href="https://techhub.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>, <a href="https://techhub.social/tags/SoftwareCraftsmanship" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareCraftsmanship</span></a>, <a href="https://techhub.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTesting</span></a> and <a href="https://techhub.social/tags/SoftwareArchitecture" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareArchitecture</span></a>. I mainly use <a href="https://techhub.social/tags/Java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Java</span></a> and <a href="https://techhub.social/tags/Kotlin" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Kotlin</span></a>, though I'm looking to learn <a href="https://techhub.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> soon, likely on my weekday <a href="https://techhub.social/tags/Twitch" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Twitch</span></a> streams. Usually highly opinionated on things I care about 😁</p><p>I also enjoy <a href="https://techhub.social/tags/books" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>books</span></a>, <a href="https://techhub.social/tags/anime" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>anime</span></a> and <a href="https://techhub.social/tags/manga" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>manga</span></a>; I'll toot more about those whenever I come across anything interesting. Drop me a follow if you'd like!</p>