O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Go's testing framework

We will use Go's built-in testing framework to write a set of tests that exercise IGWEB's server-side functionality. All server-side tests are stored in the tests folder.

If you are new to Go's built-in testing framework, provided through the testing package, you can read more about it at this link: https://golang.org/pkg/testing/.

Prior to running the go test command to execute all the tests, you must start up the Redis server instance and IGWEB (each preferably in their own dedicated Terminal window or tab).

You can start the Redis server instance with the following command:

$ redis-server

You can start the IGWEB instance with the following command, inside the $IGWEB_APP_ROOT folder:

$ go run igweb.go

To run all the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required