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:
committed by
GitHub
parent
833cddfbcd
commit
f9be836e31
15
documentation/debugging-with-dlv.md
Normal file
15
documentation/debugging-with-dlv.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user