#UnitTest

2025-07-06

We just shipped a new prerelease build of the core framework (3.0.0-pre.40).

There are no new breaking changes, so this will not reset our release clock for 3.0.0 (which should be in about a week).

xunit.net/releases/v3/3.0.0-pr

#DotNet #CSharp #FSharp #UnitTest #TDD

2025-07-04

Just a reminder that we only have roughly 10 more days of before we ship 3.0. If you've been putting off validating your tests and/or extensions with the latest prerelease, your time is running low...

#DotNet #CSharp #FSharp #UnitTest #TDD

2025-07-01

une bibliothèque pour mocker les ressources #AWS utilisées dans le code de production #Python que vous testez (S3, par exemple) : github.com/getmoto/moto

La page github.com/getmoto/moto/blob/m documente comment écrire les tests (#pytest, #unittest) et donne quelques conseils pour écrire du code de production plus facile à tester (en ce qui concerne les interactions avec boto3, le client vers les services AWS).

2025-06-21

{testthat} is great for automatic testing. Here are some tricks for the heavy user: blog.r-hub.io/2020/11/18/testt #rstats #testing #unittest #testthat

2025-06-17

I wanted a #unittest to prove that adjusting the system #cryptograhy #policy would achieve the intended outcome. 🧵

2025-06-16

We just shipped a new prerelease build of the core framework (3.0.0-pre.25).

This includes new breaking changes since last week's prerelease. Please check the release notes for more information.

xunit.net/releases/v3/3.0.0-pr

#DotNet #CSharp #FSharp #UnitTest #TDD

ENEP Linuxoidenep
2025-06-12

The class functionality of the class then drinks the squeaks of tests and the starting of the refactoring, bug fixes and the next tests until all tests will not begin to work correctly.

Allan Svelmøe Hansensvelmoe@hachyderm.io
2025-06-11

So made a source generator - ended up rather complex.
But I find unit testing it very tedious when verifying the generated output via Verify.

Is it not possible to load a class/instance as source in the testing, and use it as foundation for the generator. Instead of having to manually writing (and maintaining) the source as a string to then parse into a syntax tree to verify output? I mean it can generate on compile time, so why not at test? :D

#dotnet #sourcegenerator #unittest

2025-06-08

We just shipped prerelease builds of core framework (3.0.0-pre.15) and analyzers (1.23.0-pre.3).

This is a major version update with breaking changes. Check the release notes for more information.

xunit.net/releases/v3/3.0.0-pr
xunit.net/releases/analyzers/1

#DotNet #CSharp #FSharp #UnitTest #TDD

2025-06-07

We just shipped core framework v3 2.0.3, analyzers 1.22.0, and Visual Studio adapter 3.1.1.

Check the release notes for new features and bugs fixed.

xunit.net/releases/v3/2.0.3
xunit.net/releases/analyzers/1
xunit.net/releases/visualstudi

#DotNet #CSharp #FSharp #UnitTest #TDD

Brian AllbeeBrianAllbee
2025-05-15

As it turns out, there were some fundamental problems with the testing-strategy I had in mind for testing the PACT processes. That is, problems with how I'd planned to implement those tests, not with which tests needed to be implemented (at least not yet). Those issues took a bit of thinking through, and there were some interesting results from related investigation.

goblinfish-code.blogspot.com/2

2025-05-03

We just shipped core framework v3 2.0.2 and Visual Studio adapter 3.1.0.

Check the release notes for new features and bugs fixed.

Note: The Visual Studio adapter has moved up to .NET 8 (from .NET 6).

xunit.net/releases/v3/2.0.2
xunit.net/releases/visualstudi

#DotNet #CSharp #FSharp #UnitTest #TDD

2025-04-10

Quelques bonnes pratiques pour tester votre application Node.js.

🔗 github.com/goldbergyoni/nodejs

#nodejs #testing #unittest

2025-04-09

We have a prototype of the API documentation online: api.xunit.net/

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.

Feedback welcome!

#DotNet #UnitTest #TDD

2025-04-05

We just shipped core framework v3 2.0.1 and source analyzers 1.21.0.

Check the release notes for new features and bugs fixed.

xunit.net/releases/v3/2.0.1
xunit.net/releases/analyzers/1

#DotNet #CSharp #FSharp #UnitTest #TDD

9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2025-03-28

Nach Null setzen der Klassenvariablen in der tearDown() die die Referenzen hatten gehen die Zähler auch wieder runter und der scheiß fliegt mir nicht mehr um die Ohren 🙌🏼

#workleaks #MemoryLeak #Python #Java #Unittest

9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2025-03-28

Damit bleiben natürlich auch diese Instanzen referenziert und werden nicht aufgeräumt.

Mit wachsender Anzahl Testklassen, werdens also auch immer mehr Referenzen die unnötig weiter Platz belegen und 🤯

Hab die Theorie dann eben mal überprüft, indem ich in Kon-/Destruktor der instanziierten Klassen einen Zähler gepackt hab.
Und recht gehabt.

#workleaks #MemoryLeak #Python #Java #Unittest

9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2025-03-28

Ich hab mittlerweile so viele Unittests in dieser Suite drin, der VM HeapSpace fliegt mir um die Ohren 😶‍🌫️
Heute morgen also mal Speicheroptimierung in den Unittests betrieben :blobcatverified:

Was war passiert?
Naja, ich hab in der setUp() 9 Objekte instanziiert und in Klassenvariablen der Testklasse abgelegt.

Well, am Ende des Tests, hält die Testumgebung die Referenz auf alle Testklassen bis sie mit allem fertig ist, für final Reporting. 👀

#workleaks #MemoryLeak #Python #Java #Unittest

2025-03-25

github.com/SwissLife-OSS/snaps - SnapShooter is a #dotNET #UnitTest snapshot tool (think Jest snapshots). Run it once, save the result, and every other test run compares to that result. For when you're asserting something big like a rendered email template.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst