Documentation ¶
Overview ¶
Package tests implements a testing API for Hexya modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeTests ¶
func InitializeTests(moduleName string)
InitializeTests initializes a database for the tests of the given module. You probably want to use RunTests instead.
func RunTests ¶
RunTests initializes the database, run the tests given by m and tears the database down.
It is meant to be used for modules testing. Initialize your module's tests with:
import ( "testing" "github.com/erlangs/okoo/src/tests" ) func TestMain(m *testing.M) { tests.RunTests(m, "my_module") }
func TearDownTests ¶
func TearDownTests(moduleName string)
TearDownTests tears down the tests for the given module
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.