eldamir, to dotnet
@eldamir@hachyderm.io avatar

I feel like #TDD it’s a moving target for me working in a legacy code base. I am constantly pleasantly surprised when my tests save my skin and I can refactor things with some confidence. But writing the tests and writing them well is so hard, when there is no underlying design in the project to follow 😅

What’s a good place to go from zero to hero with TDD in #dotnet projects? Any reasonably priced courses or tutorials to recommend?

joelving, to dotnet
@joelving@mastodon.joelving.dk avatar

I know I'm exposing my own shortcomings now, but no matter:

#TDD is fun! I can tear my #dotnet app apart and put it back together with total confidence that I'm not breaking stuff. 🤯😍

I've always found it brittle and a hindrance. I was missing a proper focus on testing behavior instead of structure, which flows naturally from a outside-in approach.

If, like me, you've unsuccessfully attempted #TDD before, go watch some videos by @kentbeck, @jasongorman and @ICooper.

A whole new world awaits.

jitterted, to random
@jitterted@sfba.social avatar

So while I don't think #TDD research studies prove anything, I think they can be useful to help me highlight benefits that might not be obvious from focusing on the TDD cycle itself.

For example, in "Analyzing The Effects of Test Driven Development In GitHub" https://dl.acm.org/doi/pdf/10.1145/3180155.3182535, they conclude two things:

  1. "We found that Java TDD projects were relatively rare."

Yup. Especially in public GitHub repositories, because very little application development happens there (it's mostly tools and libraries). I point to my codebases as good examples because—while small—are real-world production apps.

1/2

jitterted, to random
@jitterted@sfba.social avatar

Alright, one more #TDD paper, because one of the conclusions in the abstract is 100% correct:

Paper: "A Family of Experiments on Test-Driven Development" https://dl.acm.org/doi/abs/10.1007/s10664-020-09895-8

[Capitalization to emphasize is mine]

"The quality-related performance of professionals using TDD drops more than for students. We hypothesize that this may be due to their being MORE RESISTANT to change and potentially LESS MOTIVATED than students."

And that's one of the most correct things I've seen in any paper. Resistant to change (and less motivated is the flip side of that coin) because "I'm an expert, and what I'm doing works for me" (completely valid)

jitterted, to languagelearning
@jitterted@sfba.social avatar

This book chapter is very relevant to me as I think about expanding JitterTed's #TDD Game (https://tddga.me)...

"Board Games as Part of Effective Game-Based Learning Strategies"

https://link.springer.com/referenceworkentry/10.1007/978-3-319-17461-7_142

#EducationalGames #Learning

janriemer, to rust

And this is why #UnitTests and #TDD are awesome/necessary (even in #Rust/ #RustLang):

The original requirement:
figure out how many columns the result of diffing two CSVs in #CsvDiff have.

Do you see the error-pattern?

It's

  • when we have no diff
    &&
  • at least one CSV has headers

which makes sense, because I've implemented the feature in the diffing logic, but at that point header information is already lost (in some other thread).

Isn't that beautiful!?🥰

#SoftwareEngineering #UnitTest

joelving, to random
@joelving@mastodon.joelving.dk avatar

Encouraged by people like @jasongorman, I'm giving #TDD a proper go during the scarce free time of my parental leave.

So far it's rubbing me all the wrong ways. The bottom-up approach runs very counter to my preferred way of thinking, where I sketch out the big picture and then fill out the details.

On the other hand, in the couple of hours it took me to recreate a part of a hobby project, it uncovered a design flaw that would have taken me an order of magnitude more hours to rectify later. 😍

xunit, to dotnet
@xunit@dotnet.social avatar

We just shipped v2 2.5.3 with a fix for a collection assertion regression.

Release notes: https://xunit.net/releases/v2/2.5.3

Fixed issue: https://github.com/xunit/xunit/issues/2795

#dotnet #csharp #fsharp #unittest #tdd

xunit, to dotnet
@xunit@dotnet.social avatar

t's release day! 🎉

We just shipped v2 Core Framework 2.5.2, Analyzers 1.4.0, and Visual Studio adapter 2.5.3. The focus of this release was resolving issues related to the new assertion library introduced in 2.5.0, as well as fixing any showstopping bugs.

Enjoy!

Release notes:

https://xunit.net/releases/v2/2.5.2
https://xunit.net/releases/analyzers/1.4.0
https://xunit.net/releases/visualstudio/2.5.3

#dotnet #csharp #fsharp #unittest #tdd

xunit, to dotnet
@xunit@dotnet.social avatar

We just shipped a new prerelease version of the Visual Studio adapter.

This release fixes a long-standing (but infrequent) bug with running .NET Framework tests via dotnet test on non-Windows OSes. If you've ever seen the error about a missing reference to Microsoft.TestPlatform.ObjectModel, this fix is for you.

Release notes:

https://xunit.net/releases/visualstudio/2.5.2-pre.10

#dotnet #csharp #fsharp #unittest #tdd

faassen, to programming
@faassen@fosstodon.org avatar

I learned a lot about the little TDD mentoring I did from @emilybache and this is an excellent video where she explains how she approaches her technical coaching on TDD

https://youtu.be/V3uetdk2laI

#programming #tdd

xunit, to dotnet
@xunit@dotnet.social avatar

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

This is primarily a bug fix release.

Release notes:

https://xunit.net/releases/v2/2.5.2-pre.6
https://xunit.net/releases/analyzers/1.4.0-pre.9
https://xunit.net/releases/visualstudio/2.5.2-pre.8

#dotnet #csharp #fsharp #unittest #tdd

raiderrobert, to random
@raiderrobert@mastodon.social avatar

My top three code smells from tests:

  1. "There's a lot of state setup as part of this test."
  2. "This test looks a whole lot like this other test."
  3. "A lot of these tests start off with the same boiler plate."

#tdd

janriemer, to rust

The feeling when you bang your head against the wall for 3 hours and then just try something, but don't really believe in it and suddenly all your unit tests pass! 🎉 :awesome:

This is the beauty of #TestDrivenDevelopment - you can just try and guess until it works.😄 It's such a funny experience!

#Rust #RustLang #Struggle #TDD #Transpiler #Compiler #selecuery #Happy

My editor showing the content of the previously mentioned test that is now passing. The most important data that is tested (needs to be transpiled) looks like an SQL statement (but it is not SQL, rather a weird dialect) with a join clause that consists of complicated parentheses and logical operators like "&&" and "||".

jitterted, to random
@jitterted@sfba.social avatar

Well today's spur-of-the-moment live coding stream (working on "Ensembler") was successful: finished a feature much more smoothly than I expected. #TDD certainly helped.

https://www.twitch.tv/videos/1940393865

davidsabine, to random

3 myths #developers tell managers about #TDD.

  1. "TDD takes longer."
  2. "We can just write the tests after."
  3. "It's difficult to keep the tests up-to-date when requirements are changing."
xunit, to dotnet
@xunit@dotnet.social avatar

We have just shipped a new build of the core framework, to fix another assertion library regression related to collections of dictionaries.

Release notes: https://xunit.net/releases/v2/2.5.2-pre.2

(Note: This is only a framework release. There is no corresponding analyzer or Visual Studio adapter release.)

#dotnet #csharp #fsharp #unittest #tdd

qcoding, to random
@qcoding@iosdev.space avatar

In a r/SoftwareEngineering thread on "#UnitTesting is a generalized approach not an ideal solution for all systems" I touch on why #XP and #TDD haven't taken over.

My rebuttal boils down to this: Does the lack of XP among businesses really mean it's less effective? Or are there other reasons it hasn't spread?

Here's the middle of the thread where it gets really interesting: https://www.reddit.com/r/SoftwareEngineering/comments/165dv8k/comment/k1o6mfj/?utm_source=share&utm_medium=web2x&context=3

jbrains, to random
@jbrains@mastodon.social avatar

I encountered this today:

> After 2 decades of doing TDD and BDD, I've realized that ignoring design and thinking that TDD will do a decent job at it for a trade-off for quicker/higher-quality development with the extra time was entirely a scam.

I react in two ways:

  1. Yes, ignoring design seems risky and invites failure.
  2. I don't know how to "do TDD and BDD" while ignoring design.

On the contrary, I do and teach #TDD as a mechanism for learning how to design "better".

How odd.

xunit, to dotnet
@xunit@dotnet.social avatar

We have just shipped a new build of the Visual Studio runner, to fix a showstopping issue related to reporters. If you've noticed that your build reports in TeamCity or Azure Pipelines are incomplete with 2.5.1, then this build is for you.

Release notes: https://xunit.net/releases/visualstudio/2.5.2-pre.3

(Note: This is only a Visual Studio runner release. There is no corresponding framework or analyzer release.)

#dotnet #csharp #fsharp #unittest #tdd

xunit, to dotnet
@xunit@dotnet.social avatar

It's release day! 🎉

We just shipped v2 Core Framework 2.5.1, Analyzers 1.3.0, and Visual Studio adapter 2.5.1. The focus of this release was resolving issues related to the new assertion library introduced in 2.5.0, as well as fixing any showstopping bugs.

Enjoy!

Release notes:

https://xunit.net/releases/v2/2.5.1
https://xunit.net/releases/analyzers/1.3.0
https://xunit.net/releases/visualstudio/2.5.1

#dotnet #csharp #fsharp #unittest #tdd

qunit, to node
@qunit@fosstodon.org avatar

Check out QUnitX by @izelnakri:
https://github.com/izelnakri/qunitx

It is is the only universal JS/TS test framework that is fast, flexible, zero dependency, and can run your test files interchangably in Node.js, browser, or Deno environments!

xunit, to dotnet
@xunit@dotnet.social avatar

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

  • We've added new overloads of Assert.RaisesAny and Assert.RaisesAnyAsync
  • We've made SerializationHelper public
  • We've fixed potential analyzer errors for users of xunit.assert.source
  • We've fixed a bug in the Visual Studio adapter that affected runner authors.

Release notes:

https://xunit.net/releases/v2/2.5.1-pre.33
https://xunit.net/releases/visualstudio/2.5.1-pre.15

#dotnet #csharp #fsharp #unittest #tdd

icougil, to Java

ei! I forgot to announce it, next Tuesday I will be sharing a session about, yes, you have guessed, around #TDD with #Java 😉
It will be interesting to see how #India's 🇮🇳 developers receive the session.
Here you can register for free: http://bit.ly/3RbKX7N

nekohayo, to GNOME
@nekohayo@mastodon.social avatar

Want a nice and reliable #calendar application for #GNOME and #Linux desktops (& #mobile!) in general, based on the @EvolutionGnome data server?

Know some #C #programming and looking for a well-scoped challenge to get your feet wet and put those skills to use in #opensource?

#GNOMECalendar could really use your help to write unit tests, so that we can use #TestDrivenDevelopment #TDD #CI for #refactoring all timezones-related code and make it reliable. Now is the time!
https://fortintam.com/blog/call-for-help-writing-gnome-calendar-compliance-unit-tests/

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