mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-12 11:05:19 +00:00
Compare commits
5 Commits
server-eng
...
v0.16.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eda33eb71 | ||
|
|
1c5fb4a6f8 | ||
|
|
a699dab33d | ||
|
|
0381636044 | ||
|
|
fb3980ce9d |
@@ -97,8 +97,18 @@ func testApp(args []string) {
|
|||||||
defer cmd.Kill()
|
defer cmd.Kill()
|
||||||
revel.INFO.Printf("Testing %s (%s) in %s mode\n", revel.AppName, revel.ImportPath, mode)
|
revel.INFO.Printf("Testing %s (%s) in %s mode\n", revel.AppName, revel.ImportPath, mode)
|
||||||
|
|
||||||
|
var httpAddr = revel.HTTPAddr
|
||||||
|
if httpAddr == "" {
|
||||||
|
httpAddr = "127.0.0.1"
|
||||||
|
}
|
||||||
|
|
||||||
|
var httpProto = "http"
|
||||||
|
if revel.HTTPSsl {
|
||||||
|
httpProto = "https"
|
||||||
|
}
|
||||||
|
|
||||||
// Get a list of tests
|
// Get a list of tests
|
||||||
var baseURL = fmt.Sprintf("http://127.0.0.1:%d", revel.HTTPPort)
|
var baseURL = fmt.Sprintf("%s://%s:%d", httpProto, httpAddr, revel.HTTPPort)
|
||||||
testSuites, _ := getTestsList(baseURL)
|
testSuites, _ := getTestsList(baseURL)
|
||||||
|
|
||||||
// If a specific TestSuite[.Method] is specified, only run that suite/test
|
// If a specific TestSuite[.Method] is specified, only run that suite/test
|
||||||
|
|||||||
Reference in New Issue
Block a user