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
Consider renaming term "test case" to "test suite" #1085
Comments
Yes. Thanks for the ISTQB links. It goes back to the beginning of gtest and will be very difficult to change, so I think everyone has just gotten used to the backwardsness. What can we really do about it? |
Thanks for the reply. Maybe every current user has gotten used to the terminology mismatch, but many potential new users might be confused. I'm currently using Google Test in a study course and to avoid confusing the students, I patched the Google Test sources as in #1084. But of course they might be confused later in case they might use the "original" Google Test once again. It's not a game stopper, but just a little bit annoying. Why do you think it's very difficult to change? It's "just" wording, and I'd volunteer to propose changes in the documentation. The harder part might be to convince experienced users in case they rely on the "old" terminology? But even that should'nt be too hard? |
I was referring to the way the terminology is integrated into the public API, mostly as the googletest reflection class "TestCase", part of the UnitTest and TestEventListener APIs. Human-readable documentation and messages should IMO be changed. |
I will see if I an do some progress on the documentation. |
I started to look into this. As you noted, changing the API without breaking backward compatibility might be not so easy (though not impossible); changing the documentation is then just some work. And finally even the internal parts of the implementation could be changed, though this is quite some refactoring. |
@BillyDonahue - could you please take a look at #1178 ; this might be a start to resolve this nomenclature issue. |
Stay tuned |
This is done now. There is a new API TestSuite and for the time being there is also a deprecated API Case |
Google Test is using the term "test case" as sort of container of "test", as is written in Primer.md:
It seems to me, that contrary to this use of the term "test case", most quality assurance literature including the International Software Testing Qualifications Board (ISTQB) are using the term "test suite" for this purpose. E.g. ISTQB's glossary about test suites:
And about test case:
So the
TEST()
macro defines a test case in my opinion, and multipleTEST()
together form the test suite, and the documentation might be changed accordingly in Primer.md. Currently it isIn my opinion, the common use of test case and test suite would be reflected by changing this to
Then instead of
TEST(test_case_name, test_name)
it would beTEST(test_suite_name, test_case_name)
.Of course, the code would also need some changes to reflect this.
Maybe this was discussed already and I didn't find the issue. Would be interested to have some discussion on this issue. For my purpose, I just changed the code to output the number of "test suites" instead of "test cases" as shown in pull request #1084 to avoid confusion locally.
The text was updated successfully, but these errors were encountered: