Ryan Goggin · @Goggin
1 followers · 16 posts · Server hachyderm.io

Painful task of the last week or so... Unit testing celery tasks.

The individual tasks weren't horrible, but definitely a lot of work...

But trying to do integration tests has proved to be difficult to say the least. Since you need to be able to mock calls, it needs to run in the context of the test suite, but just running it inline and not through a worker it doesn't run as it will in production so you might miss things.

Overall it's been a very painful experience

#celery #unittesting

Last updated 1 year ago

· @dcz
297 followers · 1894 posts · Server fosstodon.org

Lines of code of my most recent project (not yet published):

cloc cartoqgis/*py
Python 1125

and just the

cloc cartoqgis/test_conversion.py
Python 519

I'm still not feeling comfortable about the correctness of what I wrote. Need more tests!

#tests #cloc #python #testing #unittesting #tdd

Last updated 1 year ago

Eric Vitiello · @pixel
1889 followers · 4095 posts · Server social.pixels.pizza
Trinition · @Trinition
3 followers · 24 posts · Server hachyderm.io

I've really come to enjoy the Spock framework. Sadly ove not yet figured out how to use it with my Androie projects, but am using JUnit+Mockito (my second favotrite).

#unittesting

Last updated 1 year ago

techbash · @techbash
57 followers · 40 posts · Server social.vivaldi.net

Join @brendoneus and @sadukie for a pair of Test-Driven Development workshops at 2023. Register for 4 days and pick your workshop today! Early bird ends on July 4th.

techbash.com/

#techbash #tdd #testing #unittesting #developers #devconference

Last updated 2 years ago

I think that "write a test for every bug" is a foolish advice.

Write for business logic only. Everything else is an implementation detail.

#unittest #softwaredevelopment #software #testing #e2etesting #automatedtests #softwaretesting #unittesting #tests

Last updated 2 years ago

Todd A. Jacobs · @todd_a_jacobs
8 followers · 69 posts · Server ruby.social

@davetron5000 In what way are you differentiating this from or functional testing? I agree you should never have to test core Ruby or Rails features, but doesn't a view test exercise whatever you're bumping against here?

#unittesting

Last updated 2 years ago

Zhian N Kamvar :rstats: · @zkamvar
245 followers · 772 posts · Server fosstodon.org

I can not remember who said it (possibly @jennybryan), but there is a refrain that goes something like "if you do not test your software, your users are the tests."

Does anyone have a source on this?

#rstats #unittesting #testthat

Last updated 2 years ago

For my very small project, I asked IntelliJ IDEA to run all tests with coverage reporting, and it caused Cargo to install something called grcov. And about two-dozen crates as dependencies. Since then the compile/run times have gone up by several seconds.

How does a test coverage reporting feature have such a heavy footprint?

#rust #rustlang #unittesting #intellij

Last updated 2 years ago

RJ · @RemeJuan
42 followers · 645 posts · Server fosstodon.org
RJ · @RemeJuan
42 followers · 644 posts · Server fosstodon.org
php[tek] :tek2023: · @tek
78 followers · 253 posts · Server phparch.social

RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at on the topic of "Leveling Up with Unit Testing". Register now: tek.phparch.com

#phptek #php #unittesting

Last updated 2 years ago

Jon Reid · @qcoding
890 followers · 255 posts · Server iosdev.space

💞 Why did I become obsessed with for iOS? Here's what makes me tick qualitycoding.org/podcast-ios-

#unittesting #ExtremeProgramming

Last updated 2 years ago

RJ · @RemeJuan
41 followers · 543 posts · Server fosstodon.org
php[tek] :tek2023: · @tek
73 followers · 230 posts · Server phparch.social

RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at on the topic of "Leveling Up with Unit Testing". Register now: tek.phparch.com

#phptek #php #unittesting

Last updated 2 years ago

RJ · @RemeJuan
41 followers · 526 posts · Server fosstodon.org
RJ · @RemeJuan
41 followers · 521 posts · Server fosstodon.org
drag0ndust · @drag0ndust
55 followers · 103 posts · Server iosdev.space
Jon Reid · @qcoding
874 followers · 177 posts · Server iosdev.space

Really enjoying URLSession.shared.data(for: request) inside an async function. Much nicer than the old completion handler closure. Simpler to microtest, and thus simpler to TDD.

#iosdev #unittesting

Last updated 2 years ago

php[tek] :tek2023: · @tek
72 followers · 196 posts · Server phparch.social

RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at on the topic of "Leveling Up with Unit Testing". Register now: tek.phparch.com

#phptek #php #unittesting

Last updated 2 years ago