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

Go: test fixes + reporting #2867

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Go: test fixes + reporting #2867

merged 3 commits into from
Jan 2, 2025

Conversation

Yury-Fridlyand
Copy link
Collaborator

  1. Minor fix in few tests
  2. Test report generation

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand added go golang wrapper CI/CD CI/CD related testing Everything about testing labels Dec 25, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner December 25, 2024 01:34
for i, client := range clients {
suite.T().Run(fmt.Sprintf("Testing [%v]", i), func(t *testing.T) {
for _, client := range clients {
suite.T().Run(fmt.Sprintf("%T", client)[5:], func(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed to log which client was used in a test

@@ -55,7 +55,7 @@ func (suite *GlideTestSuite) TestSetWithOptions_ReturnOldValue() {

func (suite *GlideTestSuite) TestSetWithOptions_OnlyIfExists_overwrite() {
suite.runWithDefaultClients(func(client api.BaseClient) {
key := "TestSetWithOptions_OnlyIfExists_overwrite"
key := uuid.New().String()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests need unique keys, otherwise they fail if reran on existing server

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand merged commit c5b7837 into main Jan 2, 2025
18 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the go/test-fixes branch January 2, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD CI/CD related go golang wrapper testing Everything about testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants