Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for running tests without networking #116

Open
06kellyjac opened this issue Apr 23, 2021 · 0 comments
Open

allow for running tests without networking #116

06kellyjac opened this issue Apr 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@06kellyjac
Copy link

06kellyjac commented Apr 23, 2021

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 06kellyjac added the enhancement New feature or request label Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant