1
0

Tests can now use config files (#36)

This commit is contained in:
konrad
2018-12-18 16:01:46 +00:00
committed by Gitea
parent 67e94f95b0
commit 97febdb397
58 changed files with 16740 additions and 7785 deletions

View File

@ -19,7 +19,7 @@ first:
# Default configuration with explanations
This is the same as the `config.yaml` file you'll find in the root of vikunja.
This is the same as the `config.yml.sample` file you'll find in the root of vikunja.
```yaml
service:
@ -31,7 +31,9 @@ service:
interface: ":3456"
# The URL of the frontend, used to send password reset emails.
frontendurl: ""
# The base path on the file system where the binary and assets are
# The base path on the file system where the binary and assets are.
# Vikunja will also look in this path for a config file, so you could provide only this variable to point to a folder
# with a config file which will then be used.
rootpath: <the path of the executable>
# The number of items which gets returned per page
pagecount: 50

17
docs/test.md Normal file
View File

@ -0,0 +1,17 @@
# Testing
You can run unit tests with our `Makefile` with
```bash
make test
```
### Running tests with config
You can run tests with all available config variables if you want, enabeling you to run tests for a lot of scenarios.
To use the normal config set the enviroment variable `VIKUNJA_TESTS_USE_CONFIG=1`.
### Show sql queries
When `UNIT_TESTS_VERBOSE=1` is set, all sql queries will be shown when tests are run.