dockle icon indicating copy to clipboard operation
dockle copied to clipboard

allow for running tests without networking

Open 06kellyjac opened this issue 4 years ago • 0 comments

I'd like the tests that require networking to be optional/toggle-able off for running within the nix sandbox which doesn't allow network access Currently I just rm pkg/scanner/scan_test.go https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/dockle/default.nix#L25

This can be achieved with go flags

https://blog.jbowen.dev/2019/08/using-go-flags-in-tests/

https://stackoverflow.com/questions/25965584/separating-unit-tests-and-integration-tests-in-go

06kellyjac avatar Apr 23 '21 11:04 06kellyjac