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

test: add short flag for store unit test because it's using dockertest for integration tests #369

Merged

Conversation

swallowstalker
Copy link
Contributor

try to solve issue #354 so that people using Guardian will have options of disabling store package test which uses dockertest that requires connecting to /var/run/docker.sock

$ go test -count=1 -race -v -short github.com/odpf/guardian/internal/store/postgres
=== RUN   TestActivityRepository
    activity_repository_test.go:32:
--- SKIP: TestActivityRepository (0.00s)
=== RUN   TestAppealRepository
    appeal_repository_test.go:393:
--- SKIP: TestAppealRepository (0.00s)
=== RUN   TestApprovalRepository
    approval_repository_test.go:30:
--- SKIP: TestApprovalRepository (0.00s)
=== RUN   TestGrantRepository
    grant_repository_test.go:34:
--- SKIP: TestGrantRepository (0.00s)
=== RUN   TestPolicyRepository
    policy_repository_test.go:208:
--- SKIP: TestPolicyRepository (0.00s)
=== RUN   TestProviderRepository
    provider_repository_test.go:381:
--- SKIP: TestProviderRepository (0.00s)
=== RUN   TestResourceRepository
    resource_repository_test.go:424:
--- SKIP: TestResourceRepository (0.00s)
PASS
ok  	github.com/odpf/guardian/internal/store/postgres	0.691s

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4245835458

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 75.061%

Totals Coverage Status
Change from base Build 4230034365: 0.0%
Covered Lines: 7714
Relevant Lines: 10277

💛 - Coveralls

@rahmatrhd rahmatrhd merged commit 4437d32 into raystack:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants