6 Line Micro Testing Framework - apiercey.github.io
24-Mar-2023 768
Normally, I try to write tests for every project I participate in, even personal projects that never see the light of day! Yet, every once in a while, I find myself working in an environment where adding new dependencies isn’t so straightforward or tools like RSpec are a bit too bulky. In such cases, I quickly produce a few functions that allow me to execute automated tests.In Ruby, it’s quite compact and pleasant. Here is an example, at a whopping 6 lines:.
6 Line Micro Testing Framework - apiercey.github.io #ruby #rubydeveloper #rubyonrails #Micro #Testing #Framework #apiercey.github.io #apiercey.github.io #framework #testing https://rubyonrails.ba/link/6-line-micro-testing-framework-apiercey-github-io