久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='J9YFQ'></bdo><ul id='J9YFQ'></ul>
    <i id='J9YFQ'><tr id='J9YFQ'><dt id='J9YFQ'><q id='J9YFQ'><span id='J9YFQ'><b id='J9YFQ'><form id='J9YFQ'><ins id='J9YFQ'></ins><ul id='J9YFQ'></ul><sub id='J9YFQ'></sub></form><legend id='J9YFQ'></legend><bdo id='J9YFQ'><pre id='J9YFQ'><center id='J9YFQ'></center></pre></bdo></b><th id='J9YFQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='J9YFQ'><tfoot id='J9YFQ'></tfoot><dl id='J9YFQ'><fieldset id='J9YFQ'></fieldset></dl></div>

    <tfoot id='J9YFQ'></tfoot>

    1. <small id='J9YFQ'></small><noframes id='J9YFQ'>

      <legend id='J9YFQ'><style id='J9YFQ'><dir id='J9YFQ'><q id='J9YFQ'></q></dir></style></legend>

        如何在 GoogleTest 中運(yùn)行特定的測試用例

        How to run specific test cases in GoogleTest(如何在 GoogleTest 中運(yùn)行特定的測試用例)
                <tbody id='R2wZJ'></tbody>

                  <bdo id='R2wZJ'></bdo><ul id='R2wZJ'></ul>
                  <tfoot id='R2wZJ'></tfoot>

                • <i id='R2wZJ'><tr id='R2wZJ'><dt id='R2wZJ'><q id='R2wZJ'><span id='R2wZJ'><b id='R2wZJ'><form id='R2wZJ'><ins id='R2wZJ'></ins><ul id='R2wZJ'></ul><sub id='R2wZJ'></sub></form><legend id='R2wZJ'></legend><bdo id='R2wZJ'><pre id='R2wZJ'><center id='R2wZJ'></center></pre></bdo></b><th id='R2wZJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='R2wZJ'><tfoot id='R2wZJ'></tfoot><dl id='R2wZJ'><fieldset id='R2wZJ'></fieldset></dl></div>

                  <small id='R2wZJ'></small><noframes id='R2wZJ'>

                  <legend id='R2wZJ'><style id='R2wZJ'><dir id='R2wZJ'><q id='R2wZJ'></q></dir></style></legend>

                  本文介紹了如何在 GoogleTest 中運(yùn)行特定的測試用例的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在嘗試為我的項(xiàng)目編寫一個函數(shù)/方法,它會詢問用戶您要運(yùn)行哪些所有測試用例?它看起來像下面...,

                  I am trying to write a function/method for my project, which will ask to user which all test cases are you going to run? It looks like below...,

                  Test_Cases_1
                           |_TestNo1
                           |_TestNo2....so on
                  Test_Cases_2
                           |_TestNo1
                           |_TestNo2....so on
                  ....
                  ....so on
                  Test_Cases_N
                           |_TestNo1
                           |_TestNo2....so on
                  

                  那么,現(xiàn)在的挑戰(zhàn)是在運(yùn)行項(xiàng)目時,它應(yīng)該提示我您想要執(zhí)行的所有測試用例是什么?如果我選擇 Test_Cases_1Test_Cases_N.然后它應(yīng)該執(zhí)行這兩個測試用例,并且應(yīng)該排除 Test_Cases_2 to .... 中的所有其他測試用例.在結(jié)果窗口中,我也想看到 Test_Cases_1Test_Cases_N 的結(jié)果.

                  So, now the challenge is while running the project it should prompt me what all test cases you would like to execute? If I select Test_Cases_1 and Test_Cases_N. Then it should execute these two test cases and should exclude all other from Test_Cases_2 to ..... In result window also I would like to see the results of Test_Cases_1 and Test_Cases_N.

                  所以,如果我看到GoogleTest,有一個方法叫做test_case_to_run_count();但是所有的 test cases 都使用 Test_F() 方法注冊.所以,我做了很多分析,但仍然沒有找到任何解決方案.請幫幫我.

                  So, if I will see the GoogleTest, there is a method called test_case_to_run_count(); But all the test cases are getting registered with Test_F() method. So, I did lots of analysis, but still did not find any solution. Please help me.

                  推薦答案

                  您可以使用 高級選項(xiàng) 用于運(yùn)行 Google 測試.

                  You could use advanced options to run Google tests.

                  要僅運(yùn)行一些單元測試,您可以使用 --gtest_filter=Test_Cases1* 命令行選項(xiàng),其值接受 *?用于匹配多個測試的通配符.我認(rèn)為它會解決您的問題.

                  To run only some unit tests you could use --gtest_filter=Test_Cases1* command line option with value that accepts the * and ? wildcards for matching with multiple tests. I think it will solve your problem.

                  更新:

                  嗯,問題是如何運(yùn)行特定的測試用例.將 gtest 與您的 GUI 集成是另一回事,我無法真正評論,因?yàn)槟鷽]有提供您的方法的詳細(xì)信息.不過我相信以下方法可能是一個好的開始:

                  Well, the question was how to run specific test cases. Integration of gtest with your GUI is another thing, which I can't really comment, because you didn't provide details of your approach. However I believe the following approach might be a good start:

                  1. 通過使用 --gtest_list_tests
                  2. 運(yùn)行測試來獲取所有測試用例
                  3. 將此數(shù)據(jù)解析到您的 GUI 中
                  4. 選擇要運(yùn)行的測試用例
                  5. 使用選項(xiàng)--gtest_filter運(yùn)行測試可執(zhí)行文件
                  1. Get all testcases by running tests with --gtest_list_tests
                  2. Parse this data into your GUI
                  3. Select test cases you want ro run
                  4. Run test executable with option --gtest_filter

                  這篇關(guān)于如何在 GoogleTest 中運(yùn)行特定的測試用例的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Why do two functions have the same address?(為什么兩個函數(shù)的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復(fù)制構(gòu)造的?)
                  mixing templates with polymorphism(混合模板與多態(tài)性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應(yīng)該使用關(guān)鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標(biāo)準(zhǔn)庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數(shù)模板,而 clang 不能)

                  1. <legend id='VUx74'><style id='VUx74'><dir id='VUx74'><q id='VUx74'></q></dir></style></legend>

                      1. <i id='VUx74'><tr id='VUx74'><dt id='VUx74'><q id='VUx74'><span id='VUx74'><b id='VUx74'><form id='VUx74'><ins id='VUx74'></ins><ul id='VUx74'></ul><sub id='VUx74'></sub></form><legend id='VUx74'></legend><bdo id='VUx74'><pre id='VUx74'><center id='VUx74'></center></pre></bdo></b><th id='VUx74'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VUx74'><tfoot id='VUx74'></tfoot><dl id='VUx74'><fieldset id='VUx74'></fieldset></dl></div>

                            <tbody id='VUx74'></tbody>
                          <tfoot id='VUx74'></tfoot>

                          <small id='VUx74'></small><noframes id='VUx74'>

                            <bdo id='VUx74'></bdo><ul id='VUx74'></ul>
                          • 主站蜘蛛池模板: 欧美一区二区二区 | 天天射网站 | a在线视频 | 色吊丝2288sds中文字幕 | 国产精品v | 国产视频一区在线 | 成人一区二 | 日本黄视频在线观看 | 91麻豆精品一区二区三区 | 国产高清视频 | 自拍偷拍一区二区三区 | 久久国产99 | 中文字幕精品一区二区三区精品 | 日韩欧美国产成人一区二区 | 成人免费看黄网站在线观看 | 精品视频在线观看 | 男人的天堂久久 | 久久久久久九九九九九九 | 国产免费xxx | 日韩在线观看视频一区 | 精品一区二区三区不卡 | 国产精品久久国产精品 | 国产精品久久久久久久久免费 | 国产一区精品 | 盗摄精品av一区二区三区 | 99精品亚洲国产精品久久不卡 | 欧美一级高潮片免费的 | 不卡一区| 国产一区二区三区免费观看在线 | 在线91| 成人免费看黄 | 夜夜操天天干 | 成人乱人乱一区二区三区软件 | 超碰免费在线 | 在线午夜 | 成人综合久久 | 日韩网站免费观看 | 日本一区二区在线视频 | 国产精品久久毛片av大全日韩 | a在线观看免费 | 99国内精品|