From 4981d6aad49c65a2ef78ea54b3e6c8167f4efd7a Mon Sep 17 00:00:00 2001 From: lealife Date: Wed, 16 Sep 2015 11:14:29 +0800 Subject: [PATCH] move tests to app/tests --- .travis.yml | 2 +- {tests => app/tests}/auth_test.go | 0 {tests => app/tests}/db_test.go | 0 app/tests/tmp.go | 3 +++ 4 files changed, 4 insertions(+), 1 deletion(-) rename {tests => app/tests}/auth_test.go (100%) rename {tests => app/tests}/db_test.go (100%) create mode 100644 app/tests/tmp.go diff --git a/.travis.yml b/.travis.yml index 7b422c6..27c4466 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: script: - mongo --version - mongorestore -h localhost -d leanote --directoryperdb ./mongodb_backup/leanote_install_data/ - - go test github.com/leanote/leanote/tests + - go test github.com/leanote/leanote/app/tests - go build -ldflags -X github.com/leanote/leanote/app # - revel build github.com/leanote/leanote tmp # OK \ No newline at end of file diff --git a/tests/auth_test.go b/app/tests/auth_test.go similarity index 100% rename from tests/auth_test.go rename to app/tests/auth_test.go diff --git a/tests/db_test.go b/app/tests/db_test.go similarity index 100% rename from tests/db_test.go rename to app/tests/db_test.go diff --git a/app/tests/tmp.go b/app/tests/tmp.go new file mode 100644 index 0000000..1626e8c --- /dev/null +++ b/app/tests/tmp.go @@ -0,0 +1,3 @@ +package tests +func a() { +} \ No newline at end of file