-
Notifications
You must be signed in to change notification settings - Fork 3
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
Discussion of unit test format #29
Conversation
Here gtest+gmock files in the directory |
Here is a combinations table of possible build configurations.
Calculation: wolframalpha We have 2'000 free GitHubAction CI minutes per month, that should probably be enough, interesting. |
Hi, thanks for starting the unit testing discussion,
I think, the
Let's initiate our work with
Have you considered using git submodules as an alternative to storing files directly in the repository? We might need to script the submodule checkout process. I've seen this method in use, for example, at https://github.com/apriorit/gmock-global-sample. Additionally, there's useful information about integrating GitHub Actions with git submodules at https://tommoa.me/blog/github-auto-update-submodules/. We should also ensure compatibility with specific versions of
Good initial unit-tests commit! |
Accepted.
Now I-ve read a bit about submodules. Looked at what they look like in Github https://github.com/apriorit/gmock-global-sample/tree/master/src/3rd-party. Is there a difference between downloading releases of a given version gtest+gmock in CI or having git submodules? The difference is in the further development process. |
I don't know what the actual difference will be. Maybe we should support the latest version (instead of the fixed library version tag) of gtest+gmock, and as a result, we should point to the main of this lib. What do you think? |
I basically figured out what I wanted and am ready to make a decision. Workflow CI will make a clone of the "latest" version of gtest/gmock.
I refuse "submodules" due to negative community reviews about this technology, I heeded the warning.
Arguments for our own "main":
For now, I suggest leaving this thread open, at least until the first CI commit merge. |
I think we could start with any approach, and we can always improve it later if we need it. |
Closed due to success. We have reached a common opinion and there is no negative reaction to the first results of CI over time. |
For #25.
The location of the test files is perhaps the most unclear point:
Do we need to keep the test run file in one separate
main.cpp
file?To run a CI on GitHubAction, we need to upload the gtest+gmock files to the repository. Is the
ThirdParty
directory suitable?Glad that the most boring part in the
from0ToMax.cpp
file is completed. It's in the commit.