Testfixtures: Rails-like test fixtures. Test your Go web app against a real database

I don’t think mocking the SQL interface for testing is reasonable. It’s boring and the tests wouldn’t actually catch some problems, like a typo an SQL.

Setupping a test database and loading fixtures is the way to go. This package made this simple.

Inspired by the way tests are with by default on Ruby on Rails.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.