1
0
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:
Makis Maropoulos
2016-07-03 16:26:53 +02:00
parent 0d4b0ecd43
commit 126e170371
4 changed files with 85 additions and 6 deletions

View File

@@ -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
View File

@@ -0,0 +1,6 @@
package config
// Tester configuration
type Tester struct {
Debug bool
}