Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier authored Apr 7, 2018
1 parent aaf7957 commit e3bf70c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NBitcoin.Altcoins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Network network = NBitcoin.Altcoins.Litecoin.Testnet;

Follow Litecoin example and make a pull request.

NBitcoin developer does not test those PRs, so you are responsible to keep it working.
NBitcoin developers do not test those PRs, so you are responsible to keep it working.

## How to test?

Once you made your own `Network`, fill [WellknownNodeDownloadData](../NBitcoin.Tests/WellknownNodeDownloadData.cs) so the test environment can download and execute your coin.
If you wnat to test your newly created `Network`, update [WellknownNodeDownloadData](../NBitcoin.Tests/WellknownNodeDownloadData.cs) so the test environment can download binaries and run for your blockchain on regtest.

Then, change [NodeBuilderEx](../NBitcoin.Tests/NodeBuilderEx.cs) like the following example.

Expand All @@ -42,14 +42,14 @@ public static NodeBuilder Create([CallerMemberName] string caller = null)
}
```

You can then run the tests with your altcoin in command line from the NBitcoin.Tests project:
You can then run the tests for your altcoin in command line from the NBitcoin.Tests project:

Note that the first time can take a while because the test environment download the node binaries.

```
dotnet test -c Release NBitcoin.Tests.csproj --filter "Altcoins=Altcoins" -p:ParallelizeTestCollections=false --framework netcoreapp2.0
```

Or with visual studio.
You can also manually execute any test with Visual Studio.

Note that the tests with the trait `Altcoins=Altcoins` are only doing some sanity check. You might want to run additional tests.
Note that the tests with the trait `Altcoins=Altcoins` are only doing some sanity check. You might want to run additional tests.

0 comments on commit e3bf70c

Please sign in to comment.