Hudson, C++ and UnitTest++

前端 未结 6 956
迷失自我
迷失自我 2021-01-30 02:53

Has anyone used Hudson as a Continuous-Integration server for a C++ project using UnitTest++ as a testing library?

How exactly did you set it up?

I know there ha

6条回答
  •  旧巷少年郎
    2021-01-30 03:28

    We are actively doing this at my workplace.

    Currently, we use a free-style software project to:

    • Check our Subversion repository for updates every 15 minutes
    • Call a windows batch file to clean and build a solution file
      • Project files build and run unit tests as a post-build event
      • Unit test failures are returned by the test main(), thus treated as build errors

    I have also tested a configuration that uses the XmlTestReporter included with UnitTest++ to generate output files. The xUnit plugin natively supports this output, along with any other output you can convert, although I had to change the XSL file that came with it in version 0.1.3 to get durations recorded in the test history.

    There are a lot of things we would like to improve about our integration; the build logs are long and hard to parse with no coloring or highlighting, etc., but so far it has still been beneficial to us.

提交回复
热议问题