Skip to main content
changed title to fit question text
Source Link
gnat
  • 20.5k
  • 29
  • 117
  • 309

how How to structure unit testing in Qtof huge libraries?

I am writing unit testtests for a library written in Qt/C++. The

The library is rather big, with lots of functionalities. I have a seperatedseparate unitTest folder which I have my UnitTest.cpp in there. Having all test case / unit tests in the same file, makes it one very big .cpp file. 

I was wondering what is the best approach to unit test huge libraries. Should iI have differnetdifferent UnitTest.cpp files in different folder? Like one for everyclassevery class? or every name space?

how to structure unit testing in Qt

I am writing unit test for a library written in Qt/C++. The library is rather big, with lots of functionalities. I have a seperated unitTest folder which I have my UnitTest.cpp in there. Having all test case / unit tests in the same file, makes it one very big .cpp file. I was wondering what is the best approach to unit test huge libraries. Should i have differnet UnitTest.cpp files in different folder? Like one for everyclass? or every name space?

How to structure unit testing of huge libraries?

I am writing unit tests for a library written in Qt/C++.

The library is rather big, with lots of functionalities. I have a separate unitTest folder which I have my UnitTest.cpp in there. Having all test case / unit tests in the same file, makes it one very big .cpp file. 

I was wondering what is the best approach to unit test huge libraries. Should I have different UnitTest.cpp files in different folder? Like one for every class? or every name space?

Source Link
mrz
  • 275
  • 2
  • 8

how to structure unit testing in Qt

I am writing unit test for a library written in Qt/C++. The library is rather big, with lots of functionalities. I have a seperated unitTest folder which I have my UnitTest.cpp in there. Having all test case / unit tests in the same file, makes it one very big .cpp file. I was wondering what is the best approach to unit test huge libraries. Should i have differnet UnitTest.cpp files in different folder? Like one for everyclass? or every name space?