fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#tdd

4 posts4 participants0 posts today
Coming soon to Maven Central, com.schmonz:junit-greencently:20250402171221.0.0-g7a4aa00-14225507806-1:

- Also set status when not complete or green (tx Ron)
- Setup-free .gitignore (tx Llewellyn)
- Refactorings (tx Llewellyn, Petar)
- TrunkVer (tx Raimo & Chris)

#JUnit5 #TDD

Why I like #TDD? Because I don't end up writing an overcoupled interface that pretends to be something it isn't for the sake of compatibility no one asked for because I had "an idea™".

Solve a problem in front of you, nothing more, nothing less. Do it until you run out of problems. Look back in between problems. Don't downplay problems.

The only one you're gonna outsmart with a clever code is you yourself.

#softwaredevelopment

PS: I spin up HTTPS servers to test API clients, by the way.

Hey Mastodon, question for my #sysadmin and #DevOps types. Has anyone used #Pester and #PSScriptAnalyzer to set up unit testing for test driven development, particularly on (relatively) simple #PowerShell scripts like you might use for application detection, installation, and uninstallation from a system like #SCCM #Intune or #ManageEngine ?

Apologies for the buzzword bingo, but I’m trying to reach folks who may be following the hashtags, but not necessarily have a connection otherwise.

It seems like unit testing in Rust is difficult. I am looking into mockall and other mocking libraries, and I'm kind of turned off by all the macros I have to add to my code (and sometimes it even impacts the production code!) instead of being able to keep all test-related stuff in test modules. Also I don't want to use traits for everything—I'd rather not `dyn Trait` everywhere if I don't have to.

How do you effectively unit test in Rust when you have object dependencies?