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

Move MongoSpec "tests" to an examples folder? #1398

Open
NicMcPhee opened this issue Dec 31, 2023 · 1 comment
Open

Move MongoSpec "tests" to an examples folder? #1398

NicMcPhee opened this issue Dec 31, 2023 · 1 comment

Comments

@NicMcPhee
Copy link
Member

The tests we have in MongoSpec aren't really tests, but are instead examples. We've kept them because it's nice having those examples (a case @kklamberty has argued well a number of times), but calling them tests isn't really right, and including them as tests can skew things like test coverage and slow down the running of the tests.

Rust projects often have an examples folder, where you have examples of using that tool. I wonder if we can move the MongoSpec code into an server/examples folder in a way that's more honest about what's happening. I'm not entirely sure how that would work, since Java/Gradle don't natively support this idea, but I think it's do-able if we think it would be a useful move.

Thoughts?

@kklamberty
Copy link
Member

I like the idea of keeping the examples around, and this idea sounds well worth pursuing to me. I don't know what it would look like either, but I'm in favor of somebody giving this a try.

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