mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#unittests

1 Beitrag1 Beteiligte*r0 Beiträge heute

> Sometimes, gnarly stuff needs doing. But you don’t wanna do it. So you refactor #unittests, soothing yourself with the lie that you’re doing real work. But an #LLM can be told to go refactor all your unit tests. An #agent can occupy itself for hours putzing with your tests in a VM and come back later with a PR. If you listen to me, you’ll know that. You’ll feel worse yak-shaving. You’ll end up doing… real work

fly.io/blog/youre-all-nuts/

FlyMy AI Skeptic Friends Are All NutsMy smartest friends have bananas arguments about LLM coding.
#ai#llms#chatgpt

If there's one piece of advice I'd give out to teams doing unit testing with dynamic langauges like TypeScript and Python, it's "turn off all your strict type-checking in the unit test framework."

In the production code, I care that my variables are well-defined and I'm not reaching deep into a module implementation to depend on a dependency. In unit tests? Go nuts.

Test-Driven Development can be considered as reducing your WIP (Work-In-Progress) at a microlevel. By focusing on writing just enough code to make a failing test pass, refactoring what you added and push to source control, we minimise the amount of unexecuted code (= WIP). Limiting WIP is essential for fast software delivery.

🇫🇮🐍 Welcome to this month's meetup on Tuesday 15th April 2025 at Reaktor!

Talks:

🧪 @maaretp - Exploratory Unit Testing with and for GenAI

🪈 Toni Vanhala - Stable and Observable: Celery Setup Essentials for SQL Pipelines

⁉️ And the famous HelPy quiz!

meetup.com/helpy-meetups/event

See you there!

MeetupApril Helsinki Python meetup, with Reaktor, Tue, Apr 15, 2025, 5:30 PM | MeetupThe clocks have gone forward and that means it's time for our fourth meetup of 2025, this time kindly hosted by [Reaktor](https://www.reaktor.com/en-fi)! 17:30 - Doors ope
#HelPy#Helsinki#Python

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.

Fortgeführter Thread

In a way it’s similar to the people who generate #unittests for the code they’ve just written.

Nothing against those who have this big chunk of untested legacy code and happily see that #AI gives them a good starting ground of test cases.

But like with commit messages, unit tests can answer that WHY question about your production code. Why do we need that strange if branch? Oooh because of that edge case occurring in a given use case, tested by this test case over there. That’s something you can’t derive from your production code.

In #TDD, your test cases give your production code a reason to exist. In that sense, you’d be much better off to have AI generate the production code for your tests.

One thing for my job I’m looking forward to about #AI: Refactoring large systems

Doing a refactoring that involves hundreds of classes and multiple changes of infrastructure has been a thing that can take weeks, even months.

However, if you have good test coverage, you can let an LLM can do the drudge work for you and just verify it did what it said it did.

TTD is a must anyway, if you use LLM’s for helping you werite code.
#programming #refactoring #unittests

"Will you write component tests with me?" 💍
Forget "Will you marry me?" as this is the real question of commitment. A perfect mix of unit and E2E tests, proving microservices true behaviour. Because nothing says "forever" like solid test coverage. 🛠️❤️

martinfowler.com/articles/micr
#CodingLove #TestingIsCaring #Microservices #ComponentTesting #UnitTests #E2ETests #DevHumor #TechRomance #CodeCoverage #QA #DevLife #coding #developer