2019-10-29 20:54:47 +00:00
|
|
|
package main
|
|
|
|
|
2019-11-02 14:32:58 +00:00
|
|
|
import (
|
|
|
|
"github.com/clems4ever/authelia/utils"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
2019-10-29 20:54:47 +00:00
|
|
|
|
|
|
|
// RunUnitTest run the unit tests
|
|
|
|
func RunUnitTest(cobraCmd *cobra.Command, args []string) {
|
2019-11-02 14:32:58 +00:00
|
|
|
err := utils.Shell("go test $(go list ./... | grep -v suites)").Run()
|
2019-10-29 20:54:47 +00:00
|
|
|
if err != nil {
|
2019-11-02 14:32:58 +00:00
|
|
|
log.Fatal(err)
|
2019-10-29 20:54:47 +00:00
|
|
|
}
|
|
|
|
}
|