mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 10:44:28 +00:00
23 lines
333 B
Go
23 lines
333 B
Go
package main_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
// test the commands.
|
|
func TestRun(t *testing.T) {
|
|
a := assert.New(t)
|
|
gopath := setup("revel-test-run", a)
|
|
|
|
// TODO Testing run
|
|
|
|
if !t.Failed() {
|
|
if err := os.RemoveAll(gopath); err != nil {
|
|
a.Fail("Failed to remove test path")
|
|
}
|
|
}
|
|
}
|