Jerry Nixon gives 'A Developer's Guide to Database Patterns' July 24th at Nebraska.Code().
Jerry Nixon gives 'A Developer's Guide to Database Patterns' July 24th at Nebraska.Code().
Implementing first part of the third layer in of the #PACT testing processes in a standard #Python #UnitTesting framework: Prescribing (requiring) a standard test-method structure/set for functions.
https://goblinfish-code.blogspot.com/2025/04/the-pact-for-functions.html
Automate your unit tests in #DotNet like a pro!
Learn how I use GitHub #Copilot Agents to create, run, and iterate on tests until everything compiles and passes!
Smart prompts
Save time and focus on what matters
#VSCode #UnitTesting #DeveloperExperience
wp.me/p29SK-YK
The last of my catch-up posts, moving them from LinkedIn to Blogger: Implementing the next layer in of the #PACT testing processes in a standard #Python #UnitTesting framework: Prescribing (requiring) a test-module for each source module.
https://goblinfish-code.blogspot.com/2025/04/the-pact-for-module-members.html
Continuing to move LinkedIn articles to Blogger posts:
Implementing the first layer of the #PACT testing processes in a standard #Python #UnitTesting framework: Prescribing (requiring) a test-module for each source module.
https://goblinfish-code.blogspot.com/2025/04/the-pact-for-test-modules.html
Continuing to move LinkedIn articles to Blogger posts:
The first in a series of articles capturing my thoughts and efforts with respect to improving the reliability of #Python #UnitTesting.
https://goblinfish-code.blogspot.com/2025/04/prescribing-active-contract-testing.html
falsify
A few days ago, Edsko de Vries of Well-Typed published an in-depth article on property-based software testing, with a focus on the concept of “shrinking.”
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:
n*log(n)
number of iterations for input dataset of size n
““the sequence of log messages is guaranteed to obey this rules of this particular finite-state automata: (connect | fail) -> (send X | fail) -> (receive Y | receive Z | fail) -> success .”
Shrinking 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 “QuickCheck“ library provides a variety of useful tools to let you define property tests with shrinking.
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.
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.
Neat! #Duende is sponsoring #dotnet project Shouldy for the next year for $3,000. #unittesting #xunit #nunit #mstest
https://blog.duendesoftware.com/posts/20250415-shouldly-assertion-framework/
3 Reasons .NET Developers Still Struggle with Unit Testing (And How to Fix It).
https://www.typemock.com/why-dotnet-unit-testing-feels-hard/
3 Reasons .NET Developers Still Struggle with Unit Testing (And How to Fix It).
buff.ly/Cjn1j6m
#dotnet #csharp #unittesting
3 Reasons .NET Developers Stil...
Implementing the first layer of the #PACT testing processes in a standard #Python #UnitTesting framework: Prescribing (requiring) a test-module for each source module.
https://www.linkedin.com/feed/update/urn:li:activity:7317501915712405504
As I'm between jobs (again), I'm writing code for my own purposes, and writing about writing that code.
On LinkedIn, for professional visibility: capturing my thoughts and efforts with respect to improving the reliability of #Python #UnitTesting.
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<uint8_t> testData, and always call testData.size() on it, not sizeof(testData) like you do elsewhere for C-style arrays of uint8_t testData[].
The testing attachments proposal has been accepted (with modifications)! To be attached to some upcoming swift version! https://forums.swift.org/t/accepted-with-modifications-st-0009-attachments/79193
No real negative feedback, either. I guess people quickly became attached to the idea.
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.
I've been an ardent xUnit user for unit testing C# so far, but I think I could give MSTest a try. Some interesting updates to assertions and conditional tests
#dotnet #csharp #unittesting #softwaredevelopment #microsoft #visualstudio
https://devblogs.microsoft.com/dotnet/mstest-3-8-highlights/
Adding Attachments to Swift Testing is up for review! It's my first time being a review manager.
Forum thread: https://forums.swift.org/t/st-0009-attachments/78698
Proposal: https://github.com/swiftlang/swift-evolution/blob/main/proposals/testing/0009-attachments.md
via @dotnet : MSTest 3.8: Top 10 features to supercharge your .NET tests!
https://ift.tt/0gv2iIn
#MSTest #DotNet #TestingFramework #SoftwareDevelopment #VisualStudio #OpenSource #CrossPlatform #UnitTesting #TestAutomation #CSharp #MSTest38 #ContinuousIntegration…
MSTest 3.8: Top 10 features to supercharge your .NET tests!
buff.ly/oV8YdmU
#dotnet #mstest #csharp #unittesting
MSTest 3.8: Top 10 features to...
MSTest 3.8: Top 10 features to supercharge your .NET tests!
https://devblogs.microsoft.com/dotnet/mstest-3-8-highlights/?hide_banner=true
Should you really test that? Rethinking SwiftUI unit tests https://qualitycoding.org/what-to-test-in-swiftui/ #UnitTesting