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

[Proposal] Move files in tests/unit to tests #335

Open
1 task done
anthonyduong9 opened this issue Oct 17, 2024 · 1 comment
Open
1 task done

[Proposal] Move files in tests/unit to tests #335

anthonyduong9 opened this issue Oct 17, 2024 · 1 comment

Comments

@anthonyduong9
Copy link
Contributor

anthonyduong9 commented Oct 17, 2024

Proposal

Move files in tests/unit to tests, delete tests/acceptance, and move files in tests/benchmark to benchmark.

Motivation

Most of the tests in test/unit are technically integration tests since we don't mock out dependencies. We just want to make sure we have test coverage, whether it's from unit tests or integration tests, and it doesn't matter if we don't split unit tests and integration tests since the codebase isn't large. We should just call them "tests", but tests in tests/unit are run in CI, and tests in tests/benchmark aren't. We want people to add tests that are run by CI, and not add tests which aren't.

The directory name unit is not technically correct and is confusing.

Pitch

We move files in tests/unit to tests, delete tests/acceptance, and move files in tests/benchmark to benchmark, and run the tests in tests in CI.

Alternatives

We split the tests in tests/unit into unit tests and integration tests.

Additional context

The proposal is from #331 (comment).

Checklist

  • I have checked that there is no similar issue in the repo (required)
@chanind
Copy link
Collaborator

chanind commented Oct 17, 2024

👍 I support this!

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

No branches or pull requests

2 participants