dismantl, to random

Finally got the testing harness complete for my custom C2 framework. The tests write themselves, don't they?

nf3xn,
@nf3xn@mastodon.social avatar

@dismantl @mttaggart tests first, then code.

#TDD

Jaffa, to random

Wise words from the introduction & conclusion to my dad's #training material when he was learning to be a #software #developer in the early 1980s.

"Will any of this get any better? Probably not."

Jaffa,

There's a pattern of Not Invented Here Syndrome when people put a catchy name on things.

But these fundamentals lead directly to #TDD etc.

"The test design should be made at the same time as the design decision."

#NIH #TestDrivenDevelopment #Software #Development

wolframkriesing, to random
@wolframkriesing@mastodontech.de avatar

Wow, @davefarley77 explains TDD very well here.
https://www.youtube.com/watch?v=-f_HgWbomCI&t=247s
especially the gotchas when you get started.
I am bringing it to the embedded world and I see the different mindsets and challenges.
Thanks for explaining it so well.

aral, (edited ) to programming
@aral@mastodon.ar.al avatar

Just moved Tap Monkey from GitHub to Codeberg.

What’s Tap Monkey? It’s a tap test runner that’s also a monkey, of course ;)

🍌️🐒️

¹ @Codeberg

#tap #tape #js #nodeJS #test #tdd #testRunner #tapMonkey #GitHub #Codeberg

xunit, to dotnet

Due to the code signing problems caused by the .NET Foundation switchover to the Microsoft Time Stamping service, we were definitely going to want to ship a 2.5.1 release.

We also expected there to be issues with the overhauled assertion library changes in 2.5.0. We've already fixed a few:

https://github.com/xunit/xunit/issues/2743
https://github.com/xunit/xunit/issues/2749
https://github.com/xunit/xunit/issues/2750
https://github.com/xunit/xunit/issues/2755

There will be a 2.5.1 prerelease this coming week for people to test.

#dotnet #csharp #fsharp #unittest #tdd

xunit, to dotnet

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

Note: This removes support for UWP from the core framework. UWP Users will need to stick with 2.4.x builds of core and VS runner.

There is no further planned work; these may be the RTW versions. Please test ASAP and let us know if you find any issues!

Release notes:

https://xunit.net/releases/2.5.0-pre.44
https://xunit.net/releases/analyzers/1.2.0-pre.48
https://xunit.net/releases/visualstudio/2.5.0-pre.27

#dotnet #csharp #fsharp #unittest #tdd

xunit, to dotnet

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

This is primarily a bug fix/performance release, but it does include a new overload for Assert.NotNull when passed Nullable<T> values, returns the unwrapped T value as a result.

Release notes:

https://xunit.net/releases/2.5.0-pre.37
https://xunit.net/releases/analyzers/1.2.0-pre.27
https://xunit.net/releases/visualstudio/2.5.0-pre.22

#dotnet #csharp #fsharp #tdd #unittest #foss #oss

jitterted, to random
@jitterted@sfba.social avatar

I stopped trying to define Unit Tests (I would define it as Feathers defined it) and now exclusively use the terms:

I/O-Based tests: has I/O in the test (accesses clock, database, etc.)

I/O-Free tests: no I/O access in the test (no current date/time, no random numbers, no file access, no network access, etc.)

I'll slip up and use "Unit" when I really mean I/O-Free (and "Integration" when I mean "I/O-Based"), but for the most part I've switched.

There's so much baggage and debate around "what's a unit?", when that isn't always the most important question. I've found it much easier to explain that when doing #TDD, we want to use I/O-Free tests as they'll be sufficiently fast to get feedback in less than a couple of seconds.

jbzfn, (edited ) to random
@jbzfn@mastodon.social avatar

"I often jump into the TDD flow when I’m adding a new feature to a product or confirming the existence of a bug. If it’s not clear how I should approach the problem, the best way for me to start is with a test. Tests force me to break down the problem into steps to reach an initial solution, while refactoring gets me to a cleaner solution"
➥ Increment Magazine

#TDD #Testing #SoftwareDevelopment
https://increment.com/testing/the-art-and-craft-of-tdd/

janriemer, to random

Unit tests are NO boilerplate! They are a very important part of engineering correct and maintainable software!

Please get this right!

#ArtificialIntelligence #LLM #LLMs #MSBuild #SoftwareEngineering #SoftwareDevelopment #UnitTest #TDD

MarcinW, to random

I find it hilarious when #TDD people think those on non-TDD projects don't know how to write tests.

I find it hilarious when #DDD people think those on non-DDD projects don't know how to handle complex projects.

jbrains, to programming
@jbrains@mastodon.social avatar

I wrote an article that refers to @RonJeffries's classic "We Tried Baseball And It Didn't Work", so I count that as a success.

How TDD Seems to Go Against Agility. (What?!)

https://blog.jbrains.ca/permalink/how-tdd-seems-to-go-against-agility

#lightweight #psychologicalSafety #tdd #programming

coderbyheart, to random
@coderbyheart@chaos.social avatar

I wrote a new parser for Markdown files (in order to run BDD tests off them), and the bugs I find because I didn't think of a specific way to write markdown keeps entertaining me. It's a good, humbling experience that you never can even assume your own ways to use any tool.

Funny how it fails on a blank line in a code block.

But with #TDD the fix is quick to roll out, and I know it wont break anything else.

https://github.com/NordicSemiconductor/bdd-markdown-js/commit/fae2ec5d96ff254555d8965450969700ef3aea41

SoCraTes_UK, to random
jitterted, to random
@jitterted@sfba.social avatar

Why do we look for forms of duplication (exact, similar, partial) when refactoring (especially during a #TDD cycle)?

It's so we can move the code from specific to general.

But that will only happen after you have several examples (tests) implemented. It's dangerous to prematurely generalize (YAGNI), but we want to generalize when we can.

timothep, to random

🚨 new @devjourney #257 with Emmanuel Gaillot!

Every journey I recorded for my Software Developer's Journey podcast was a delight to discover. In every story, I learned something useful for myself or my career. I had good laughs in every discussion, was moved by emotional stories, and experienced inspiring moments. But sometimes, one story resonates with me more than the others. This is one of those.

I knew of Emmanuel Gaillot through his work on the Agile Open France conference and the Coding Dojo in Paris. But I finally met him through the NewCrafts Conferences in 2023. I even enjoyed introducing a profound and moving session he facilitated at the conference this year, exploring "coding as a mindfulness practice."

On the show, Emmanuel placed the start of his journey in a computer club in the 80s. He described how he learned GW-BASIC and became hooked. He told about his love for music and how his parents encouraged him to pursue "real studies." He explained how he went to the USA to study Computer Science, music, and Japanese... and became a theater composer. He discussed his first job as a programmer and being bored (and bad at it) until he discovered #eXtremeProgramming. He talked about learning #TDD, exploring what became #CodeKata, and creating a #CodingDojo. He spoke about finding psychotherapy, becoming a psychotherapist, and much more. This was a wild ride worth every minute!

Here's the direct link to his story https://devjourney.info/Guests/257-EmmanuelGaillot

Subscribe to get more weekly stories from wherever you get your podcasts: devjourney.info/subscribe

video/mp4

xunit, to dotnet

For the next prerelease build of xunit.runner.visualstudio, we are shipping the ability to pass all xUnit.net configuration items via RunSettings (both as an XML file as via dotnet test command line switches).

The documentation page on how this works has just gone live: https://xunit.net/docs/runsettings

jbrains, to random
@jbrains@mastodon.social avatar

Idle thought: Indeed, #tdd isn't magic---it doesn't automatically lead to success as a programmer; it does, however, help make learning a core part of everyday practice, which leads more often to more kinds of success. It makes room for improvement in a profession where we're often told to improve on our own damn time.

mattwynne, to opensource

Hello #hachyderm I've been lurking here a few days so time for my #introduction I guess 😳👋

For work, I'm lucky enough to be paid as co-lead of the https://github.com/cucumber open source project, a #BDD / #TDD acceptance testing tool. I'm the author of https://pragprog.com/titles/hwcuc2/the-cucumber-book-second-edition/

My big project in #OpenSource is https://cucumber.io/blog/open-source/tackling-structural-racism-(and-sexism)-in-open-so/

AMA about that.

I grew up in Northen England. but I live in the mountains in BC, Canada these days with my wife, two prenage kids and our dog Ponyo.

Like: ⛷🏔🛶🏃‍♀️⛏☮

RobMyers, to random

Let's discuss your concerns & the various common misperceptions about #TDD; & how it helps #Scrum #SoftwareDevelopment teams rapidly deliver quality product iteratively & incrementally over the long term.

Meetup Hosted by Collaborative Leadership Team

https://www.meetup.com/ignite-agility/events/293467502/

jamesshore, to random
@jamesshore@mastodon.online avatar

Nullables are a novel approach to testing that allow you to create fast, reliable tests without using mocks (or interfaces). They're a way of "turning off" production code so you can have sociable, state-based tests that don't talk to the outside world.

I'm hosting office hours on May 10th at 9am Pacific / 12pm Eastern / 18:00 CEST for anybody who'd like to discuss these ideas. Bring your code! Details and a calendar reminder are available here: https://www.jamesshore.com/v2/calendar/2023-05-10

#nullables #tdd #testing

jamesshore, to programming
@jamesshore@mastodon.online avatar

I have to confess to some hubris. After evaluating the various Node.js testing frameworks, I've decided to write my own instead. In this 🧵, I'll explain why. Mostly so I can remember it for the future.

#NodeJs #tdd #testing

schmonz, to programming

You know me, I can’t pass up a portmantopportunity. So I’ve renamed When All Tests Were Green to Greencently.

(From unwieldy to eye-rolling, perhaps amusingly so.)

Here’s a FAQ about the thing itself, not the rename: https://schmonz.com/software/greencently/faq

#junit #tdd #git #jvm #kotlin #java

jitterted, to random
@jitterted@sfba.social avatar

#TDD doesn't mean you can't plan ahead, jotting down/sketching out a bunch of tests that you know you need.

It does mean you go through the Red->Green->Refactor cycle with only one test at a time.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines