0

I have to do the same 5 tests on 3 classes.

Is there some way to avoid writing 15 separate tests, besides macros? (Essentially creating 15 tests by looping over 3 classes / 5 string values)

Ca C++14.

Olav
  • 1,758
  • 4
  • 27
  • 49
  • Probably too obvious a question: Are the classes somehow related, and do the tests deal with related methods? – John Perry May 02 '18 at 13:46
  • same static method (overridden versions) in different classes (not instantiated) – Olav May 02 '18 at 15:30
  • A bit similar to this:https://stackoverflow.com/questions/6256758/can-googletest-value-parameterized-with-multiple-different-types-of-parameters?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Olav May 02 '18 at 16:30

0 Answers0