Skip to content

Commit 7f77827

Browse files
fix: Add testing instructions to README.md (#243)
Co-authored-by: Roberto Mancinelli <[email protected]>
1 parent d5cd441 commit 7f77827

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,26 @@ public class MyService
315315

316316
For more examples see the [API documentation](https://docs.truelayer.com). Advanced customization options and documentation for contributors can be found in the [Wiki](https://github.com/TrueLayer/truelayer-sdk-net/wiki).
317317
318+
## Testing
319+
320+
This project includes two types of tests:
321+
322+
**Unit Tests** - Run standalone without external dependencies:
323+
```shell
324+
dotnet test test/TrueLayer.Tests/
325+
```
326+
327+
**Acceptance Tests** - End-to-end integration tests that require TrueLayer sandbox credentials:
328+
```shell
329+
# Set credentials via environment variables
330+
TrueLayer__ClientId=your_client_id TrueLayer__ClientSecret=your_client_secret dotnet test
331+
332+
# Or run all tests (will fail without credentials)
333+
dotnet test
334+
```
335+
336+
The acceptance tests make real HTTP calls to TrueLayer's sandbox APIs to validate the entire SDK against live services. See `test/TrueLayer.AcceptanceTests/README.md` for credential setup instructions.
337+
318338
## Building locally
319339

320340
This project uses [Cake](https://cakebuild.net/) to build, test and publish packages.

0 commit comments

Comments
 (0)