C++ Development with unit tests

Hi everyone,

We are attempting the following:
- Write a project using C++
- Use the Qt library
- Use QTest (it can export xml)
- Build using Qmake
- Platform - Linux
- VCS - Subversion

I have succeeded in making the project compile using the command-line runner, so the unit testing remains. I know CPPUnit/Boost is an option, however, given that QTest is nicely built into Qt, I would prefer taking that route.  I know qtest can export to an xml file and apparently it can be read by VisualStudio so it might be compatible with TeamCity. I don't know how to confirm this as I don't know TeamCity that well.

My question/s is/are thus:
- Have anyone done Qt development and used TeamCity successfully with unit testing?
- Any suggestions as to how I could proceed to at least try and do unit testing and make the most of TeamCity ?

Thanks allot!

Pieter

5 comments
Comment actions Permalink

Hello, Pieter,

What TemaCity version are you using?

The right way for importing xml reports in case when TeamCity doesn't detect tests automatically is using xml-report-plugin.

I know qtest can export to an xml file and apparently it can be read by VisualStudio so it might be compatible with TeamCity. I don't know how to confirm this as I don't know TeamCity that well.


Let me have a look at qtest xml report example and I'll let you know whether xml-report-plugin supports these format.

0
Comment actions Permalink

Hi Victory,

Thanks for replying. I'm currently using TeamCity 6.0.2. I'll be upgrading to 6.0.3 today.

Pieter

0
Comment actions Permalink

Pieter,

Currently xml-report-plugin doesn't support QTest xml report format.
Please vote for the corresponding feature http://youtrack.jetbrains.net/issue/TW-15926

0
Comment actions Permalink

Hi Pieter,
You say:

- Use QTest (it can export xml)

Do you mean QTestLib?    Because QTest(http://qtest.qbilt.org) is library for perl.

0
Comment actions Permalink

Hi Pieter, 

can you please share the build configuration steps to test Qt programs in teamcity.

thank you.!

0

Please sign in to leave a comment.