mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 05:25:58 +00:00
Add a Test framework to make it easier to test Iris app
I will commit the tests , mostly to see how this is working, when I finish with the front-end tests
This commit is contained in:
@@ -109,6 +109,9 @@ type (
|
||||
// this field is useful only when you need to READ which is the server's address, certfile & keyfile or unix's mode.
|
||||
//
|
||||
Server Server
|
||||
|
||||
// Tester contains the configs for the test framework, so far we have only one because all test framework's configs are setted by the iris itself
|
||||
Tester Tester
|
||||
}
|
||||
|
||||
// Render struct keeps organise all configuration about rendering, templates and rest currently.
|
||||
@@ -146,6 +149,7 @@ func Default() Iris {
|
||||
Render: DefaultRender(),
|
||||
Websocket: DefaultWebsocket(),
|
||||
Server: DefaultServer(),
|
||||
Tester: Tester{Debug: false},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
6
config/tester.go
Normal file
6
config/tester.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package config
|
||||
|
||||
// Tester configuration
|
||||
type Tester struct {
|
||||
Debug bool
|
||||
}
|
||||
Reference in New Issue
Block a user