Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Qt と QTest が初めてです。QTest::qExec(&someMyTestClassObject) を使用してテストを実行します。「PASS : MyClass::myTest」メッセージを非表示にすることは可能ですか? もちろん、すべての「FAIL」メッセージと統計を表示したいのですが、英語が下手で申し訳ありません
で動作するかどうかはわかりませんQTest::qexecが、で生成されたデフォルトの QTest 実行可能ファイルQTEST_APPLESS_MAIN(MyTestClass)では、パラメータでテストを実行できます-silent。
QTest::qexec
QTEST_APPLESS_MAIN(MyTestClass)
-silent
ヘルプテキストから:
-silent : Only outputs warnings and failures