Skip to content

hschne/smother

Repository files navigation

Smother

Logo

Smother is a revolutionary tool to ✨ magically ✨ increase your test coverage! Don't just cover your code - smother it! ☁️

Without Smother 👎 With Smother 👍
Screen Shot 2025-04-26 at 20 59 15 Screen Shot 2025-04-26 at 21 08 15

Why Smother?

So you have some Ruby 💎 code and want to improve your test coverage.

Great Idea. But who has time time write more tests? You certainly don't.

Enter Smother.

Smother ✨ magically ✨ improves your test coverage within seconds!

Usage

Install Smother and call it in your test suite. A single test will do.

bundle add smother
test 'smother everything' do
  Smother.my_code
end

That's it. Now run your tests and enjoy your improved coverage! 🤩

How It Works

It's really simple.

Smother identifies and calls all public methods in your code base with appropriate arguments. Any errors are ignored, so your code can continue execution.

This dramatically increases code coverage.

FAQ

Wait, where are the assertions? This doesn't actually test anything?!

Who cares? Smother improves your code coverage. Brrr, Number go up! 📈

Why not use AI to generate tests?

Why waste your precious credits if Smother can magically improve your code coverage in seconds?

Why not fake the coverage results altogether?

That would be cheating.

Smothering my code feels... violent?

Smother is efficient, but efficiency comes at a price.

Is this a joke?

Improving code coverage is no a joke.

No, really.

Okay, I thought this would be a fun way to play around with introspection and dynamic programming in Ruby.

I don't actually recommend anyone actually use this in any setting anywhere.

Contributing

Are you sure you want to contribute to this monstrosity?

Well, don't let me stop you. Bug reports and pull requests are welcome on GitHub at https://github.com/hschne/smother. Contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

Don't just cover your code. Smother it ☁️

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published