Hello. I've been using gtest in my project. Right now All my tests are in different cpp files which are included by the main cpp file. I think everybody understands that it's not really a good thing. I want to know how can I write headers for those files which will be included in the main file so that I can compile these series of tests and link them later as I do with my usual code. --
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
(I don't use that dedicated gtest file that launches all tests, I have it written myself in main function) and get them all launched?int main(int argc, char** argv){::testing::InitGoogleTest(&argc, argv);return RUN_ALL_TESTS();}
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframework+unsub...@googlegroups.com.
Yes. If the other cpp files with tests in are built at the same time as the main.cpp file then they will run too.
The set up in terms of make file and what gets built (probably all the cpp files in the directory) works in just the same way as a normal non-test project.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.