James Thomas · @hiccupps
268 followers · 296 posts · Server sw-development-is.social

Make the data in your tests visible, reviewable, and easily editable because the data is where the value is.

Blogged: Rage Against the Machinery qahiccupps.blogspot.com/2023/0

#testing #unittests #data

Last updated 1 year ago

robrich · @robrich
52 followers · 341 posts · Server hachyderm.io
Sharon Machlis · @smach
2313 followers · 279 posts · Server masto.machlis.com

Introduction to Unit Tests in R – free webinar this Wednesday, 23 August, 1:00-2:00 pm UK time / 8 am EDT. With Tom Jemmett, Senior Data Scientist, NHS Strategy Unit. Hosted by @NHSrCommunity .

nhsrcommunity.com/events/augus
@rstats

#rstats #unittests

Last updated 1 year ago

Andreas Dutzler · @adtzlr
2 followers · 10 posts · Server mathstodon.xyz

For my tensor toolbox (module) I'd like to add some unit tests. Unfortunately, my knowledge and experience in Fortran ends with writing this little toolbox and some user materials for software like or . Do you have any recommendation or tutorials on how to add unit tests to a module? Ideally with Github Actions integration... 💡 Thanks!

github.com/adtzlr/ttb

#unittests #FiniteElement #scientificcomputing #marc #abaqus #fea #fortran

Last updated 1 year ago

Mohammad Rafigh - Tech · @mohammadrafigh
14 followers · 47 posts · Server fosstodon.org

When you start adding tests to a project it's always like:

"Yeah! The coverage is 30%!"

**Then after a few more tests:**

"Good, it's now 50%, I'm going to hit 80%"

**But when it reaches 75%:**

"Shit! I just added 20 lines just to cover 0.03%?!"

#unittests #codecoverage

Last updated 1 year ago

I wrote a unit test at work to expose a bug that we found, then solved the bug and the unit test passed. Yay 🫨

#programming #unittests

Last updated 1 year ago

Tim Penhey 🇳🇿 · @thumper
231 followers · 523 posts · Server hachyderm.io

Expanding test coverage while writing a new feature.

Got to that stage where I really don't like some of the existing behaviour, but better to document it explicitly in the tests, than to not have coverage.

That is what I keep telling myself anyway.

#python #unittests

Last updated 1 year ago

robrich · @robrich
30 followers · 261 posts · Server hachyderm.io
Code Intelligence · @CodeIntelligence
99 followers · 47 posts · Server ioc.exchange

Join us today at 4:00 PM CEST / 10:00 AM EDT!

Come meet Code Intelligence CTO Niklas Henrich live and join a discussion on how your unit tests can be enhanced with self-learning AI to reveal bugs and security vulnerabilities that would otherwise go unnoticed.

Stay tuned to the end for interactive questions and a live Q&A.

code-intelligence.com/webinar/

#unittests #SpringBoot #apitest

Last updated 1 year ago

Of all the wrongheaded reasons to use I think "so I don't have to write " is the brainwormiest.

Y'all made people think they had to write for everything instead of just for the important things, and they hated it so bad they invented a new language to automate it and forgot they still need to write .

#type #programming #tdd #testing #javascript #webdev #softwaredevelopment #functionaltests #unittests #tests #typescript

Last updated 1 year ago

Riverfount :python_logo: · @riverfount
10 followers · 16 posts · Server hachyderm.io

Fala a verdade, tem coisa mais gostosa que vc poder ver a cobertura de testes de um código legado crescer, e vc saber que é um dos grandes responsáveis por isso?

#tests #unittests #pytest #python #testever

Last updated 1 year ago

robrich · @robrich
12 followers · 102 posts · Server hachyderm.io

I was given a assignment by a as part of the interview process. Here's the result written in with the , using a .

github.com/boreec/REST-API

Codebase is tested with and documented via .

#docstring #unittests #database #sqlite #framework #flask #python #startup #api #rest

Last updated 1 year ago

Ainent · @ainent
29 followers · 100 posts · Server fosstodon.org

Self-encouragement on Test Driven Development:
1. There are always more scenarios to add
2. 'Enough' is a judgment call
3. When bugs inevitably find their way in, you can always add more tests at that time
4. If the system under test is inherently complex (file system access, configured app permissions), remember that logical inconsistencies in your assertions will reveal each other, given enough robust scenarios
5. Regression testing will be relatively trivial

#tdd #unittests #swiftlang #swift

Last updated 1 year ago

Johannes Egger · @jegger
4 followers · 16 posts · Server mastodon.social

Wow, in Rust you can easily write tests next to the SUT. That lowers the bar for writing the first test by a lot. But is this common practise, also for larger modules with many tests?

#rust #rustlang #test #unittest #unittests

Last updated 1 year ago

Jan Van Ryswyck · @janvanryswyck
106 followers · 95 posts · Server mastodon.social

Fast, Independent, Repeatable, Self-validating and Timely. These are the five guidelines of F.I.R.S.T., introduced by Robert C. Martin, that describe the very basic qualitative characteristics for solitary tests. However, there are also other guidelines that are very important as well. For more information: leanpub.com/writing-maintainab

#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign

Last updated 1 year ago

cslinuxboy · @cslinuxboy
72 followers · 658 posts · Server mastodon.social

Why is it that creating unit tests for your code takes twice a long as the code you're testing against? I get that we need testing, but it's extremely time consuming.

#unittests #testing #coding #pytest #phpunit #python #php #webdevelopment

Last updated 1 year ago

Heidi Seibold · @HeidiSeibold
1415 followers · 340 posts · Server fosstodon.org

How to atomatically create from backlogs in a scrum setting? This is what we hear about in this next talk.

#unittests #derse23

Last updated 1 year ago

Thibault Le Cornec · @tibimac
27 followers · 14 posts · Server mastodon.social

Je suis pas mécontent de ce petit bout de pour vérifier que ma DB est dans la bonne config avant d'entamer des tests dessus.

#code #realm #unittests #xcode #iosdev

Last updated 1 year ago