1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

DOCS: Split out debugging / integration Tests (#2007)

This commit is contained in:
Jeffrey Cafferata
2023-01-28 17:07:32 +01:00
committed by GitHub
parent 833cddfbcd
commit f9be836e31
3 changed files with 33 additions and 20 deletions

View File

@ -0,0 +1,15 @@
## Debugger
Test a particular function:
```shell
dlv test github.com/StackExchange/dnscontrol/v3/pkg/diff2 -- -test.run Test_analyzeByRecordSet
^^^^^^^^^
Assumes you are in the pkg/diff2 directory.
```
Debug the integration tests:
```shell
dlv test github.com/StackExchange/dnscontrol/v3/integrationTest -- -test.v -test.run ^TestDNSProviders -verbose -provider NAMEDOTCOM -start 1 -end 1 -diff2
```