[Qbs] Error after running tests

Alberto Mardegan mardy at users.sourceforge.net
Tue Jan 14 22:18:17 CET 2020

Hi there!
  I'm using the AutotestRunner to run the unit tests in my project [1].
The tests run successfully, but then QBS tries to install them (why?)
and fails:

$ qbs project.enableCoverage:true project.buildTests:true

$ qbs run -p check
Restoring build graph from disk
Building for configuration default
Clearing coverage data [coverage-clean]
Running test path-test [check]
********* Start testing of Mappero::PathTest *********
Config: Using QtTest library 5.12.4, Qt 5.12.4
(x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1
20160406 (Red Hat 5.3.1-6))
PASS   : Mappero::PathTest::initTestCase()
PASS   : Mappero::PathTest::loadGpx()
PASS   : Mappero::PathTest::loadKml()
PASS   : Mappero::PathTest::saveGpx()
PASS   : Mappero::PathTest::positionAt()
PASS   : Mappero::PathTest::cleanupTestCase()
Totals: 6 passed, 0 failed, 0 skipped, 0 blacklisted, 54ms
********* Finished testing of Mappero::PathTest *********
Build done for configuration default.
ERROR: Cannot run: Product 'check' is not an application.

("check" is the name of the AutotestRunner item)
It's been a while since I ran the unit tests on this project, but I
don't remember having seen this before.

Is there a way to suppress the installation (or at least to get rid of
the error)?


[1]: https://gitlab.com/mardy/mappero

More information about the Qbs mailing list