kopia lustrzana https://github.com/reiver/greatape
30 wiersze
582 B
Go
30 wiersze
582 B
Go
package core_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/reiver/greatape/components/core"
|
|
"github.com/reiver/greatape/components/model/repository"
|
|
"github.com/xeronith/diamante/logging"
|
|
"github.com/xeronith/diamante/settings"
|
|
)
|
|
|
|
//region Initialization
|
|
|
|
func TestMain(main *testing.M) {
|
|
logger := logging.NewLogger(false)
|
|
configuration := settings.NewTestConfiguration()
|
|
if err := repository.Initialize(configuration, logger); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
|
|
if err := core.Initialize(configuration, logger); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
|
|
os.Exit(main.Run())
|
|
}
|
|
|
|
//endregion
|