mirror of https://github.com/go-gitea/gitea
parent
1badb2bbcc
commit
59d0e73c35
@ -1,9 +0,0 @@ |
||||
command: go test -v {} |
||||
include: ^.+_test\.go$ |
||||
path: ./ |
||||
depth: 1 |
||||
verbose: true |
||||
timeout: 1m |
||||
reload: false |
||||
html: test.html |
||||
notify: [] |
@ -1,13 +0,0 @@ |
||||
## Gogs Test |
||||
|
||||
This is for developers. |
||||
|
||||
## Prepare Environment |
||||
|
||||
go get -u github.com/shxsun/travelexec |
||||
# start gogs server |
||||
gogs web |
||||
|
||||
## Start Testing |
||||
|
||||
travelexec |
@ -1,17 +0,0 @@ |
||||
package test |
||||
|
||||
import ( |
||||
"net/http" |
||||
"testing" |
||||
) |
||||
|
||||
func TestMain(t *testing.T) { |
||||
r, err := http.Get("http://localhost:3000/") |
||||
if err != nil { |
||||
t.Fatal(err) |
||||
} |
||||
defer r.Body.Close() |
||||
if r.StatusCode != http.StatusOK { |
||||
t.Error(r.StatusCode) |
||||
} |
||||
} |
Loading…
Reference in new issue