Commit 6852a36a authored by Lukas Matt's avatar Lukas Matt

Update README.md

parent cce4771b
Pipeline #742 failed with stage
in 21 minutes and 44 seconds
# Federation Tests [![](https://travis-ci.org/thefederationinfo/federation-tests.svg?branch=master)](https://travis-ci.org/thefederationinfo/federation-tests)
# Federation Tests
[![](https://testsuite.feneas.org/images/stats/builds.png)](https://testsuite.feneas.org)
This repository is about automating federation tests in the network itself!
* [the-federation.info](https://the-federation.info/)
* [testsuite.the-federation.info](https://testsuite.the-federation.info/)
* [testsuite.feneas.org](https://testsuite.feneas.org/)
## Projects
......@@ -26,15 +28,16 @@ The start-up script is required so that we can do some configuration magic at bo
Following environment variables will be available while tests are running:
$DATABASE (on every run)
$PORT (on every run)
$PRREPO (only on pull_requests from a user)
$PRSHA (only on pull_requests from a user)
$DATABASE (on every run)
$PORT (on every run)
$PRREPO (only on pull_requests from a user)
$PRSHA (only on pull_requests from a user)
$(hostname -i) (if you need the container IP address)
This information we can use in our start-up script mentioned above.
For example if `PRREPO` and `PRSHA` is set we probably want to checkout the source code of the pull request first.
Checkout for reference the start-up script of the ganggo image:
See for reference the start-up script of the ganggo image:
```
#!/bin/bash
......@@ -77,7 +80,7 @@ If a user triggers a build with the following parameters:
The testsuite will replace the offical with the user repository and checkout the mentioned commit.
If you did all that `\m/` Create a pull-request with your changes in this repository and as soon as we merged it.
You can add your repository [here](https://testsuite.the-federation.info/auth)!
You can add your repository [here](https://testsuite.feneas.org/)!
Now the testing can begin :)
......@@ -85,13 +88,13 @@ Now the testing can begin :)
## Dependencies
In case you want to test specific parts locally you need `postgresql`, `docker` and `redis`.
Make sure they are up and running:
In case you want to test specific parts locally you need `docker`.
Make sure it is up and running:
sudo systemctl start redis.service postgresql.service docker.service
sudo systemctl start docker.service
Then you can install the testsuite dependencies:
* github.com/stedolan/jq
* github.com/sstephenson/bats
......@@ -101,7 +104,7 @@ Simply run the install script or do it manually:
## Run tests
After installing all required dependencies you can start single tests via:
After installing all required dependencies you can start tests via:
# bats <test-file> e.g.:
bats ganggo-ganggo.tx-rx.bats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment