Explore >> Select a destination


You are here

blog.gnoack.org
| | filipnikolovski.com
10.5 parsecs away

Travel
| | A blog about programming, technology and open-source stuff.
| | konradreiche.com
8.8 parsecs away

Travel
| | There are different ways of separating integration tests from your unit tests in Go. After discovering too many issues with some of the approaches I have settled with the following. func TestDatabase(t *testing.T) { integrationTest(t) // ... } func integrationTest(t *testing.T) { t.Helper() if os.Getenv("INTEGRATION") == "" { t.Skip("skipping integration tests, set environment variable INTEGRATION") } } Integration tests are marked as such at the top of the test function, similar to using t.Helper(). A test helper function is used to skip the test unless the environment variable is set. All tests, including integration tests, can be run with:
| | www.softdevtube.com
10.4 parsecs away

Travel
| | Programming history is filled with bugs that turned out to be features and limitations that pushed developers to make even more interesting products. We'll journey through code that was so 'bad' it was actually good. Along the way we'll look at the important role failure plays in learning. Then we'll tame our inner perfectionists and
| | www.github.com
77.1 parsecs away

Travel
| my blog, with astro. Contribute to Krayorn/blog development by creating an account on GitHub.