Ustvarjanje testov Google
Če želite ustvariti test Google:
- Pojdite na File > New Project > Test Project.
- Izberite » Google Test Project « > » Choose «, da ustvarite projekt s predlogami kode za Google test.
- V pogovornem oknu » Project and Test Information « določite nastavitve za projekt in test:

- V oknu » Test framework « izberite » Google Test (shared libraries) «, da vzpostavite povezavo z Google Testom, ali » Google Test (headers only) «, da v projekt vključite potrebne izvorne kode Google Testa.
- V oknu » Test suite name « vnesite ime za sklop testov.
- V Test case name vnesite ime za testni primer.
- Za test skupne knjižnice lahko v polju » Googletest install directory (optional) « nastavite pot do namestitve okvira za testiranje Google C++.
- Za test, ki vključuje samo glave, lahko v polju » Googletest source directory (optional) « nastavite pot do klona repozitorija googletest.
- V Build system izberite sistem za gradnjo, ki ga želite uporabiti za gradnjo projekta: CMake, qmake ali Qbs.
Qt Creator ustvari test v navedenem projektnem imeniku.
Za več informacij o ustvarjanju Google testov glejte Google Test Primer.
Opomba: Med iskanjem testov parser upošteva le datoteke, ki neposredno ali posredno vključujejo gtest/gtest.h. Datoteke, ki trenutno ne bodo zgradene, bodo prezrte.
Glejte tudi Navodila: Testiranje, Izberite sistem za gradnjo in Testiranje.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.