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

mock tests: is it supposed to work like that? #271

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kojoley
Copy link
Contributor

@Kojoley Kojoley commented Apr 20, 2023

I kinda like it even, but what is the point of this beautiful but over engineered system? May I replace it with just b2 -n | FileCheck expected maybe? It would be much easier to maintain and work with while also faster to run. The only benefit of the current system is unordered match, it not used extensively though and actually confusing. When you finally see the error message good luck to figure out what changed.

I kinda like it even, but what is the point of this beautiful but over engineered system? May I replace it with just `b2 -n | FileCheck expected` maybe? It would be much easier to maintain and work with while also faster to run. The only benefit of the current system is unordered match, it not used extensively though and actually confusing. When you finally see the error message good luck to figure out what changed.
@grafikrobot
Copy link
Member

I would be rather happy if the whole mock thing went away. I didn't write the thing. And I can't think of a time when it detected a problem. I would prefer more low level / isolated unit tests.

@Kojoley
Copy link
Contributor Author

Kojoley commented Apr 20, 2023

And I can't think of a time when it detected a problem

Because it currently tests popular toolsets (except clang-vxworks) which are also tested in CI. It's much more useful for toolsets which can't be tested in CI, would save me from overthinking whether my change could break some rotting without CI toolset. It also tests only a tiny specific scenario. I once wanted to deal with #118 using mocking, but currently it drains too much time to set the tests up (and it also slow to run).

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