continuous-integration/drone/push Build is passing
This PR adds a declarative integration testing setup which includes 2 local VMs client and server which can be started and stopped via a command. The VMs are run with QEMU and created by https://github.com/microvm-nix/microvm.nix The key pair is generated for this use case and is safe to commit, it resolves the problem that the readFile function can only be used with git tracked files. --------- Co-authored-by: devydave <yannick-dev@tutanota.com> Reviewed-on: #902 Reviewed-by: p4u1 <133+p4u1@noreply.git.coopcloud.tech> Co-authored-by: devydave <bittedanke@tutanota.com>
12 lines
525 B
Markdown
12 lines
525 B
Markdown
# Test suite
|
|
|
|
* Unit testing is done in the packages themselves, run `find . -name
|
|
"*_test.go"` to find those. Use `make test` to run the entire unit test
|
|
suite. Some unit tests require mocked files which are located in
|
|
`./tests/resources.`
|
|
|
|
* Integration tests are in `./tests/integration`. Please see [these
|
|
docs](https://docs.coopcloud.tech/abra/hack/#integration-tests) for
|
|
instructions and tips on how to run them. If you want to run it locally via nix,
|
|
read the [nix testing docs](../nix/hosts/README.md).
|