btcpayserver/BTCPayServer.Tests
2017-10-06 11:07:22 +09:00
..
Logging Init 2017-09-13 15:55:16 +09:00
Mocks Init 2017-09-13 15:55:16 +09:00
BTCPayServer.Tests.csproj Rely on docker for tests, move everything to the root 2017-10-03 00:41:03 +09:00
BTCPayServerTester.cs Rely on docker for tests, move everything to the root 2017-10-03 00:41:03 +09:00
CustomerHttpServer.cs Fix Token permissions (merchant facade > pos facade) + Add IPN + Add Hangfire integration 2017-09-26 01:31:43 +09:00
docker-compose.yml Properly map addresses to invoice, use new nbxplorer 2017-10-06 10:37:38 +09:00
Dockerfile Rely on docker for tests, move everything to the root 2017-10-03 00:41:03 +09:00
ProcessLauncher.cs Init 2017-09-13 15:55:16 +09:00
README.md Add balance of the store in the stores page 2017-10-06 11:07:22 +09:00
ServerTester.cs Rely on docker for tests, move everything to the root 2017-10-03 00:41:03 +09:00
TestAccount.cs Allow flexible derivation scheme for the store 2017-10-05 00:05:38 +09:00
UnitTest1.cs Rely on docker for tests, move everything to the root 2017-10-03 00:41:03 +09:00
Utils.cs Init 2017-09-13 15:55:16 +09:00

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

The Bitcoin RPC server is exposed to the host, for example, you can send 0.23111090 BTC to mohu16LH66ptoWGEL1GtP6KHTBJYXMWhEf.

bitcoin-cli -regtest -rpcport=43782 -rpcuser=ceiwHEbqWI83 -rpcpassword=DwubwWsoo3 sendtoaddress "mohu16LH66ptoWGEL1GtP6KHTBJYXMWhEf" 0.23111090