All packages should have a "testability" indicator

I'ma self-taught developer on my journey to become a successful indie dev.
For more content follow me on Twitter @adrianthedev
Search for a command to run...

I'ma self-taught developer on my journey to become a successful indie dev.
For more content follow me on Twitter @adrianthedev
No comments yet. Be the first to comment.
I want to share my experience regarding AI-driven development.I know it's not a new and shiny thing, and it's been around for a while now, but some things should need some time to take it through its

I think it's important that the Ruby community knows what just happened in San Francisco last week. 400+ Rubyists got together and shared ideas and visions. They exchanged opinions and presented the past, present, and future of Ruby. I went to very ...

Tl;DR; We're taking a break with Friendly.rb. We had three beautiful editions, incredible fun, and learned so much in the process. This happening changed us, the hosts in ways we could not imagine. We're taking a break because things have happened in...

What do you need in your digital brain? That's how I think about Avo now. It's not some closeted admin panel where only five people dare to go because touching the data wrong might crash the app. It's the place where you invite your whole team to run...
Here's something that's been on my mind lately about the Rails ecosystem. For the past 10 years, there's been massive investment in dev tooling, especially for JavaScript and TypeScript companies. They take some of that funding and deploy it to marke...
Own it - A blog from Adrian Marin
24 posts
Sharing my lessons on becoming a thriving #indiedev.
๐ Launching Avo into the world! - ๐ฅ A beautiful, easy-to-use Ruby on Rails admin panel framework
I mentioned in a tweet that package managers should have an "is testable" field for owners to fill.
I felt the urge to publish that tweet after trying to test my code's functionality by mocking a response coming from a package. This package was making it so difficult for me to mock an API response. That frustrated me a lot.
When a developer uses your package, something you've built, make it easily testable and document the way he can do that.
This way, you increase the developer's trust in you, in your code, and make it easy for him to write his code and test, move on and "forget" that piece of code. You will have lightened his cognitive load, and he will never be afraid of touching that code in the future.
Now that I think about it, this makes more and more sense.
The owner sets a testability level low|medium|high, that level appears on the package registry page (and GitHub), and people can vote on that That's true|That's false.
The package registry can even show a feedback form to get the developer's thoughts. We all know how difficult it is to get feedback.
All of this could be correlated to your CI pipeline and also feed some testing stats like code coverage.
Test your code, and don't let untestable packages stop you from doing that.