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

feat(tests): Run test cases based on features #980

Closed
wants to merge 3 commits into from
Closed

Conversation

JinnyYi
Copy link
Contributor

@JinnyYi JinnyYi commented Oct 29, 2021

ref: #966

@Xuanwo
Copy link
Contributor

Xuanwo commented Oct 29, 2021

Maybe we should deprecate the whole TestAppender and move all tests into TestStorager?

path := uuid.NewString()
o, err := store.CreateAppend(path)
f := store.Features()
if f.CreateAppend && f.WriteAppend && f.CommitAppend && f.Write && f.Read && f.Delete && f.Stat {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should only check CreateAppend here and check the needed features when we use them so we can check as many cases as possible.

@JinnyYi
Copy link
Contributor Author

JinnyYi commented Oct 29, 2021

Maybe we should deprecate the whole TestAppender and move all tests into TestStorager?

Got it. Do we just keep one source file, or keep the existing files?

@Xuanwo
Copy link
Contributor

Xuanwo commented Oct 29, 2021

Got it. Do we just keep one source file, or keep the existing files?

We can move them all into deprecated.go so that we don't need to touch them anymore.

And we can organize other tests into different files for easy maintenance.

@Xuanwo
Copy link
Contributor

Xuanwo commented Nov 1, 2021

Do you think it's a big burden to remove all deprecated test cases from services? Can we just remove them?

@JinnyYi
Copy link
Contributor Author

JinnyYi commented Nov 1, 2021

Do you think it's a big burden to remove all deprecated test cases from services? Can we just remove them?

If we remove them directly, we need to remove the test functions called in services before releasing a new version. Maybe we can do it together in #986?

@Xuanwo
Copy link
Contributor

Xuanwo commented Nov 1, 2021

Got it. Let's revisit this PR until we figure out what's the best way to organize those tests based on features.

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.

2 participants