Skip to content

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

Merged
rahmatrhd merged 1 commit intoraystack:mainfrom
swallowstalker:test/short-flag-for-dockertest
Feb 23, 2023
Merged

test: add short flag for store unit test because it's using dockertest for integration tests#369
rahmatrhd merged 1 commit intoraystack:mainfrom
swallowstalker:test/short-flag-for-dockertest

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