ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

#unittest

2 posts2 participants0 posts today
xUnit.net<p>We have a prototype of the API documentation online: <a href="https://api.xunit.net/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">api.xunit.net/</span><span class="invisible"></span></a></p><p>We're not sure if it will live on a separate URL forever, but until the main site is rebuilt with DocFX, this is how it has to be for now.</p><p>Feedback welcome!</p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
xUnit.net<p>We just shipped core framework v3 2.0.1 and source analyzers 1.21.0.</p><p>Check the release notes for new features and bugs fixed.</p><p><a href="https://xunit.net/releases/v3/2.0.1" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">xunit.net/releases/v3/2.0.1</span><span class="invisible"></span></a><br><a href="https://xunit.net/releases/analyzers/1.21.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">.21.0</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/FSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
Flominator<p>Had an old <a href="https://genealysis.social/tags/unitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitTest</span></a> in a legacy project failing for some time already, but didn't recognize it/bother. Now I figured out the reason: the English name for <a href="https://genealysis.social/tags/Turkey" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Turkey</span></a> returned by the operating system is meanwhile <a href="https://genealysis.social/tags/T%C3%BCrkiye" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Türkiye</span></a>, which doesn't match the old enum value Turkey anymore.<br><a href="https://genealysis.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://genealysis.social/tags/csharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csharp</span></a></p>
Gary "grim" Kramlich<p>Holy crap! I just noticed we're up to 130 unit test suites in <span class="h-card" translate="no"><a href="https://fosstodon.org/@pidgin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pidgin</span></a></span> 3 now! Compare that to the 7 suites we have in Pidgin 2!</p><p>This is what we've been talking about when we've been saying that we're making the code easier to maintain. The code has been reworked so that we can actually unit test way more of it and we will continue to add more tests as we move forward!</p><p><a href="https://mastodon.social/tags/Pidgin" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pidgin</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/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://mastodon.social/tags/Maintainability" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Maintainability</span></a> <a href="https://mastodon.social/tags/techdebt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>techdebt</span></a></p>
xUnit.net<p>We just shipped core framework v3 2.0.0.</p><p>This contains breaking changes, so the release notes are rather more detailed than normal.</p><p>Release notes: <a href="https://xunit.net/releases/v3/2.0.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">xunit.net/releases/v3/2.0.0</span><span class="invisible"></span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/FSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
Thiago Bomfim<p>If you have many assertions, you can also use the SoftAssertions to test all the assertions and give all the results at once.</p><p>Read more 👉 <a href="https://lttr.ai/ATQTo" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lttr.ai/ATQTo</span><span class="invisible"></span></a></p><p><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/unitest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unitest</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/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://mastodon.social/tags/AssertJ" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AssertJ</span></a> <a href="https://mastodon.social/tags/assertions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>assertions</span></a> <a href="https://mastodon.social/tags/code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>code</span></a> <a href="https://mastodon.social/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a></p>
xUnit.net<p>More thoughts about test parallelism as it involves the starting/finished message pairs for test collections, test classes, and test methods.</p><p>If you're a runner author, do you use these messages? Can we just remove them?</p><p>Provide thoughts here: <a href="https://github.com/xunit/xunit/discussions/3164#discussioncomment-12217024" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/xunit/xunit/discuss</span><span class="invisible">ions/3164#discussioncomment-12217024</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
Brad Wilson<p>A good first step.</p><p>These tests (and xunit.v3.assert.aot) are compiled with &lt;PublishAot&gt;true&lt;/PublishAot&gt;, but still being run normally (not via a published executable). It's hard for me to know how many *more* tests might fail after publishing, but that's quite a ways off.</p><p><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/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://mastodon.social/tags/NativeAOT" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NativeAOT</span></a></p>
Brad Wilson<p>Thinking about what an AOT version of <span class="h-card" translate="no"><a href="https://dotnet.social/@xunit" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>xunit</span></a></span> would look like. I spent some time talking to <span class="h-card" translate="no"><a href="https://hachyderm.io/@agocke" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>agocke</span></a></span> last year about it so I have some thoughts.</p><p>It almost surely end up being a completely separate code base/package. No mixing and matching, because the internal design would be very different.</p><p>Top three things I think:</p><p>- .NET 8+ only (no .NET Framework)<br>- C# only (no F# or VB)<br>- No extensibility points (you get our Fact and Theory, you get our pipeline).</p><p>1/</p><p><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/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://mastodon.social/tags/FSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FSharp</span></a> <a href="https://mastodon.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
xUnit.net<p>We are considering changing some of the options for the ways tests run in parallel against one another. Please read this and add your thoughts. Thanks!</p><p><a href="https://github.com/xunit/xunit/discussions/3164" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/xunit/xunit/discuss</span><span class="invisible">ions/3164</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
xUnit.net<p>We'd like to get some feedback on a change coming in 2.0.0 for Assert.Equal displays when doing collection comparisons. We've already made a change to make string comparisons better, but should we do it for all collection values?</p><p><a href="https://github.com/xunit/xunit/discussions/3163" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/xunit/xunit/discuss</span><span class="invisible">ions/3163</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
xUnit.net<p>We have just shipped new builds of Core Framework v3, Analyzers, and Visual Studio adapter.</p><p>Release notes:<br><a href="https://xunit.net/releases/v3/1.1.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">xunit.net/releases/v3/1.1.0</span><span class="invisible"></span></a><br><a href="https://xunit.net/releases/analyzers/1.20.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">.20.0</span></a><br><a href="https://xunit.net/releases/visualstudio/3.0.2" 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/3.0.2</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/FSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
xUnit.net<p>We are permanently enabling support for Span/Memory and immutable collections in the assertion library, removing the XUNIT_SPAN and XUNIT_IMMUTABLE_COLLECTIONS flags for source-based consumers.</p><p>You may need to add NuGet package references to System.Collections.Immutable and/or System.Memory.</p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a></p>
sumanthvepa<p>If you are writing individual unittests, you may be doing testing wrong.</p><p>I finally <a href="https://mastodon.social/tags/parameterized" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>parameterized</span></a> all the <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/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> for my deployment tool. </p><p>This is the way testing should be done. </p><p>The way testing is taught, with single unit tests is very misleading.</p><p>With parameterized tests, I can automatically test a significant portion of the input space of function or program. </p><p><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/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></p>
xUnit.net<p>We are planning to bump up the minimum version of .NET from 6 to 8 in the 2.0 release. The 1.x releases will continue to allow targeting .NET 6.</p><p>There is no timeline yet for this release.</p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</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>
sumanthvepa<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@ehmatthes" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ehmatthes</span></a></span> No particular reason, other than that <a href="https://mastodon.social/tags/unittest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unittest</span></a> comes with the standard library. </p><p>Maybe, that's all I need to do. Just switch to <a href="https://mastodon.social/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a>.</p><p>It is the weekend, and I am writing experimental code. So what the heck. I'll ask ChatGPT to rewrite the tests using pytest.</p>
xUnit.net<p>Do you think it's weird that v3 test projects are stand-alone executables? You're not alone. Here is a brief history behind the decision.</p><p><a href="https://github.com/xunit/xunit/issues/3139#issuecomment-2611568692" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/xunit/xunit/issues/</span><span class="invisible">3139#issuecomment-2611568692</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/MicrosoftTestingPlatform" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MicrosoftTestingPlatform</span></a></p>
xUnit.net<p>Until now, <a href="https://github.com/xunit/assert.xunit/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/xunit/assert.xunit/</span><span class="invisible"></span></a> has been shared between v2 and v3.</p><p>Starting today, this repository will become v3 only, and the supported target frameworks and C# language will be updated to be aligned with that.</p><p>We're adding a v2 branch for people who need to stick there.</p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>
xUnit.net<p>We've created a new documentation page on getting Code Coverage when using Microsoft Testing Platform: <a href="https://xunit.net/docs/getting-started/v3/code-coverage-with-mtp" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">xunit.net/docs/getting-started</span><span class="invisible">/v3/code-coverage-with-mtp</span></a></p><p><a href="https://dotnet.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> <a href="https://dotnet.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://dotnet.social/tags/UnitTest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>UnitTest</span></a> <a href="https://dotnet.social/tags/TDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TDD</span></a></p>