I wrote an example of something I've been thinking about a lot. I have no idea if it's something or nothing, but I am compelled to share out of excitement that it actually runs.
I want to be able to specify tests, and specify "variants", and run the tests with a specified list of variants. The variants in my head are stuff like mock out the Foo service
, use the real Foo service
, login with an admin user
, etc.
Testing.main do |t|
t.context "Widget#price" do |c|
c.let(:widget) do
Widget.new(id: rand(1000))
end