-
Notifications
You must be signed in to change notification settings - Fork 712
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
Fix prog/main_test.go #2567
Fix prog/main_test.go #2567
Conversation
Not sure what the consensus is on testing private interfaces; if "okay" then I can re-add and fix it |
Good catch, sigh. I think we should re-add it. |
@2opremio ok if I use github.com/stretchr/testify/assert? It's already in |
Sure |
Is excluded from tests and does not compile.
Executing any backend tests in Edit: So instead of doing that I just skip the
|
Makefile
Outdated
@@ -179,10 +179,12 @@ tmp/weave-scope.tgz: $(shell find client/app -type f) $(SCOPE_UI_BUILD_UPTODATE) | |||
else | |||
|
|||
client/build/index.html: | |||
cd client && npm run build | |||
test "true" = "$(SCOPE_SKIP_UI_ASSETS)" && { mkdir -p client/build; } || \ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
I agree. I didn't expect this to open a can of worms. |
@2opremio I was wrong with |
@@ -74,7 +74,7 @@ fail=0 | |||
|
|||
if [ -z "$TESTDIRS" ]; then | |||
# NB: Relies on paths being prefixed with './'. | |||
TESTDIRS=($(git ls-files -- '*_test.go' | grep -vE '^(vendor|prog|experimental)/' | xargs -n1 dirname | sort -u | sed -e 's|^|./|')) | |||
TESTDIRS=($(git ls-files -- '*_test.go' | grep -vE '^(vendor|experimental)/' | xargs -n1 dirname | sort -u | sed -e 's|^|./|')) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Is excluded from tests and does not compile.