Eclipse (CDT) plugin for running tests and browsing report

前端 未结 1 347
再見小時候
再見小時候 2020-12-16 14:25

Google\'s answers (hear! hear!) and Eclipse Market Place search results on this topic simply drive me crazy! And apparently the proposed SO answers aren\'t really helpful ei

相关标签:
1条回答
  • 2020-12-16 14:54

    Since JUNO there is a C++ Unit testing support package. It is package of the CDT. I only used it with boost test, but AFAIK it also supports googletest.

    @mkaes comment pushed me to it!

    1. Install the CDT (Help->Install Software->CDT) optional C/C++ Unit Test support
    2. Create a new Runner using 'Run As -> Run Configurations -> C/C++ Unit Test
    3. Choose 'Google Tests Runner' for 'Tests Runner' in the 'C/C++ Testing' tab
    4. Choose your testing project executable in the 'Main' tab
    5. Run it, and the 'C/C++ Unit' view shows up after (rebuild and) execution

    Look here for more illustrated and detailed instructions: Eclipse Juno has landed with unit testing support for C++

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