From aa597251764559191fe4eb235b641df199f6eb97 Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Tue, 3 Oct 2017 01:01:21 +0900 Subject: [PATCH] Doc how to run tests --- BTCPayServer.Tests/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 BTCPayServer.Tests/README.md diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md new file mode 100644 index 000000000..d0ee34f55 --- /dev/null +++ b/BTCPayServer.Tests/README.md @@ -0,0 +1,26 @@ +# How to run the tests + +The tests depends on having a proper environment running with Postgres, Bitcoind, NBxplorer configured. +You can however use the `docker-compose.yml` of this folder to get it running. + +``` +docker-compose up nbxplorer +``` + +You can run the tests while it is running through your favorite IDE, or with + +``` +dotnet test +``` + +Once you want to stop + +``` +docker-compose down +``` + +You can run the tests inside a container by running + +``` +docker-compose run --rm tests +``` \ No newline at end of file