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
Lines of code of my most recent project (not yet published):
cloc cartoqgis/*py
Python 1125
and just the #tests
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
Modern SwiftUI: Testing
#SwiftUI #Swift #Programming #iOS #macOS #UnitTesting #AutomatedTesting
https://www.pointfree.co/blog/posts/98-modern-swiftui-testing
#swiftui #swift #programming #iOS #macOS #unittesting #automatedtesting
I've really come to enjoy the Spock #unittesting framework. Sadly ove not yet figured out how to use it with my Androie projects, but am using JUnit+Mockito (my second favotrite).
Join @brendoneus and @sadukie for a pair of Test-Driven Development workshops at #techbash 2023. Register for 4 days and pick your workshop today! Early bird ends on July 4th.
#techbash #tdd #testing #unittesting #developers #devconference
I think that "write a test for every bug" is a foolish advice.
Write #tests for business logic only. Everything else is an implementation detail.
#unitTesting #softwareTesting #automatedTests #e2eTesting #testing #software #softwaredevelopment #unitTest
#unittest #softwaredevelopment #software #testing #e2etesting #automatedtests #softwaretesting #unittesting #tests
@davetron5000 In what way are you differentiating this from #UnitTesting 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?
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
For my very small #Rust 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
"React Testing Library & Accessibility - DEV Community" https://dev.to/steady5063/react-testing-library-accessibility-4fom #react #unittesting #accessibility
#react #unittesting #accessibility
"Keeping tests valuable: Avoid implementation details!" https://thepragmaticengineer.hashnode.dev/keeping-tests-valuable-avoid-implementation-details #unittesting #softwaredevelopment #development #testing
#unittesting #softwaredevelopment #development #testing
RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at #PHPTek on the topic of "Leveling Up with Unit Testing". Register now: https://tek.phparch.com #PHP #Unittesting
💞 Why did I become obsessed with #UnitTesting for iOS? Here's what makes me tick https://qualitycoding.org/podcast-ios-unit-testing-champion/ #ExtremeProgramming
#unittesting #ExtremeProgramming
Widget testing: Dealing with Renderflex Overflow Errors
https://blog.remelehane.dev/widget-testing-dealing-with-renderflex-overflow-errors
#flutter #flutterdev #unittesting
RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at #PHPTek on the topic of "Leveling Up with Unit Testing". Register now: https://tek.phparch.com #PHP #Unittesting
Automated Unit Testing with GitHub Actions
https://blog.remelehane.dev/automated-unit-testing-with-github-actions
#ci #githubactions #unittesting
"Using Github Copilot for unit testing | Strict Mode" https://www.strictmode.io/articles/using-github-copilot-for-testing #copilot #unittesting #javascript
#copilot #unittesting #javascript
Unit testing is an important aspect of software development…
#UnitTesting #SoftwareDevelopment #Swift #BugCatching #ErrorPrevention #CodeChanges #CodeDocumentation #CodeMaintenance #ReliableSoftware #stuffatory #indiedev #mobiledev #iosapps
https://www.instagram.com/reel/Cncwxs2Dy9T/?igshid=ZjE2NGZiNDQ=
#unittesting #softwaredevelopment #swift #bugcatching #errorprevention #codechanges #codedocumentation #codemaintenance #reliablesoftware #stuffatory #indiedev #mobiledev #iosapps
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
RT @phptek
Level up your development game! Mark Niebergall ( @mbniebergall ) will be speaking at #PHPTek on the topic of "Leveling Up with Unit Testing". Register now: https://tek.phparch.com #PHP #Unittesting