How do you run your unit tests? Compiler flags? Static libraries?

后端 未结 7 510
情书的邮戳
情书的邮戳 2021-02-04 06:20

I\'m just getting started with TDD and am curious as to what approaches others take to run their tests. For reference, I am using the google testing framework, but I believe the

相关标签:
7条回答
  • 2021-02-04 07:12

    Your approach no. 1 is the way I've always done it in C/C++ and Java. Most of the application code is in the static library and I try to keep the amount of extra code needed for the application to a minimum.

    The way I approach TDD in Python and other dynamic languages is slightly different in that I leave the source code for the application and tests lying around and a test runner finds the tests and runs them.

    0 讨论(0)
提交回复
热议问题