Føj test til eksisterende testprojekter

Sådan tilføjer du en ny fil med testtilfælde til et projekt, der indeholder et testprojekt:

  1. Gå til " File " > " New File".
  2. Vælg Test Case > Choose.
  3. I Test framework skal du vælge det testframework, der er i brug. Dette skal svare til det testframework, du bruger i det projekt, du vil tilføje denne fil til.

    Dialogboksen »Testoplysninger« i guiden »Testcase«

De indstillinger, der skal angives, afhænger af det valgte testframework.

Bemærk: Dette understøttes kun for kodebaserede testrammer, bortset fra Qt Tests. Der er ingen officiel understøttelse af at have flere testtilfælde i en enkelt Qt-testapplikation, og det er bedre at oprette et separat testunderprojekt for hvert testtilfælde.

Se også Sådan gør du: Test og testning.

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.