亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? running_tests.html

?? 關于c單元測試的一些文檔
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<HTML><HEAD>  <TITLE>CUnit - Running Tests</TITLE>  <LINK REL=StyleSheet HREF="CUnit_doc.css" TYPE="text/css" TITLE="CUnit Basic Style" /></HEAD><BODY><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">  <TR>    <TH COLSPAN="3" ALIGN="center"><H3>CUnit Progammers Guide</H3></TH>  </TR>  <TR>    <TD WIDTH="10%" ALIGN="left" VALIGN="bottom"><A HREF="managing_tests.html" ACCESSKEY="P" >Prev</A></TD>    <TD WIDTH="80%" ALIGN="center" VALIGN="bottom"><A HREF="index.html" ACCESSKEY="H" >Home</A></TD>    <TD WIDTH="10%" ALIGN="right" VALIGN="bottom"><A HREF="error_handling.html" ACCESSKEY="N" >Next</A></TD>  </TR></TABLE><HR ALIGN="LEFT" WIDTH="100%"><H2>5. Running Tests</H2><H3 ID="synopsis">5.1. Synopsis</H3>#include &lt;<A HREF="headers/Automated.h">CUnit/Automated.h</A>&gt;<PRE>  void         <A HREF="#automated">CU_automated_run_tests</A>(void)  CU_ErrorCode <A HREF="#automated">CU_list_tests_to_file</A>(void)  void         <A HREF="#automated">CU_set_output_filename</A>(const char* szFilenameRoot)</PRE><P />#include &lt;<A HREF="headers/basic.h">CUnit/Basic.h</A>&gt;<PRE>  typedef enum    <A HREF="#basic">CU_BasicRunMode</A>  CU_ErrorCode    <A HREF="#basic">CU_basic_run_tests</A>(void)  CU_ErrorCode    <A HREF="#basic">CU_basic_run_suite</A>(CU_pSuite pSuite)  CU_ErrorCode    <A HREF="#basic">CU_basic_run_test</A>(CU_pSuite pSuite, CU_pTest pTest)  void            <A HREF="#basic">CU_basic_set_mode</A>(CU_BasicRunMode mode)  CU_BasicRunMode <A HREF="#basic">CU_basic_get_mode</A>(void)  void            <A HREF="#basic">CU_basic_show_failures</A>(CU_pFailureRecord pFailure)</PRE><P />#include &lt;<A HREF="headers/Console.h">CUnit/Console.h</A>&gt;<PRE>  void <A HREF="#console">CU_console_run_tests</A>(void)</PRE><P />#include &lt;<A HREF="headers/CUCurses.h">CUnit/CUCurses.h</A>&gt;<PRE>  void <A HREF="#curses">CU_curses_run_tests</A>(void)</PRE><P />#include &lt;<A HREF="headers/TestRun.h">CUnit/TestRun.h</A>&gt;(included automatically by &lt;<A HREF="headers/CUnit.h">CUnit/CUnit.h</A>&gt;)<PRE>  unsigned int <A HREF="#results">CU_get_number_of_suites_run</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_suites_failed</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_tests_run</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_tests_failed</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_asserts</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_successes</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_failures</A>(void)  typedef struct <A HREF="#results">CU_RunSummary</A>  typedef CU_Runsummary* <A HREF="#results">CU_pRunSummary</A>  const CU_pRunSummary <A HREF="#results">CU_get_run_summary</A>(void)  typedef struct <A HREF="#results">CU_FailureRecord</A>  typedef CU_FailureRecord*  <A HREF="#results">CU_pFailureRecord</A>  const CU_pFailureRecord <A HREF="#results">CU_get_failure_list</A>(void)  unsigned int <A HREF="#results">CU_get_number_of_failure_records</A>(void)</PRE><P /><H3 ID="overview">5.2. Running Tests in CUnit</H3>CUnit supports running all tests in all registered suites, but individual testsor suites can also be run.  During each run, the framework keeps track of the number of suites, tests, and assertions run, passed, and failed.  Note that theresults are cleared each time a test run is initiated (even if it fails).<P />While CUnit provides primitive functions for running suites and tests, mostusers will want to use one of the simplified user interfaces.  Theseinterfaces handle the details of interaction with the framework and provideoutput of test details and results for the user.<P />The following interfaces are included in the CUnit library:<P CLASS="indent5"><TABLE CELLPADDING=3 BORDER=1>  <TR>    <TD><B>Interface</B></TD>    <TD ALIGN="center"><B>Platform</B></TD>    <TD><B>Description</B></TD>  </TR>  <TR>    <TD><A HREF="#automated">Automated</A></TD>    <TD ALIGN="center">all</TD>    <TD>non-interactive with output to xml files</TD>  </TR>  <TR>    <TD><A HREF="#basic">Basic</A></TD>    <TD ALIGN="center">all</TD>    <TD>non-interactive with optional output to stdout</TD>  </TR>  <TR>    <TD><A HREF="#console">Console</A></TD>    <TD ALIGN="center">all</TD>    <TD>interactive console mode under user control</TD>  </TR>  <TR>    <TD><A HREF="#curses">Curses</A></TD>    <TD ALIGN="center">Linux/Unix</TD>    <TD>interactive curses mode under user control</TD>  </TR></TABLE></P>If these interfaces are not sufficient, clients can also usethe primitive framework API defined in&lt;<A HREF="headers/TestRun.h">CUnit/TestRun.h</A>&gt.  See the sourcecode for the various interfaces for examples of how to interact withthe primitive API directly.<H3 ID="automated">5.3. Automated Mode</H3>The automated interface is non-interactive.  Clients initiate a test run,and the results are output to an XML file.  A listing of the registered testsand suites can also be reported to an XML file.<P />The following functions comprise the automated interface API:<P ID="auto-run" CLASS="indent2"><CITE>void <B>CU_automated_run_tests</B>(void)</CITE></P><P CLASS="indent5">Runs all tests in all registered suites.  Test results areoutput to a file named <I>ROOT-Results.xml</I>.  The filename <I>ROOT</I> canbe set using <A HREF="#auto-setroot">CU_set_output_filename()</A>, or else the default<I>CUnitAutomated-Results.xml</I> is used.  Note that if a distict filename <I>ROOT</I>is not set before each run, the results file will be overwritten.<BR /><BR />The results file is supported by both a document type definitionfile (<I>CUnit-Run.dtd</I>) and XSL stylesheet (<I>CUnit-Run.xsl</I>).These are provided in the <I>Share</I> subdirectory of the source and installationtrees.</P><P ID="auto-list" CLASS="indent2"><CITE>CU_ErrorCode <B>CU_list_tests_to_file</B>(void)</CITE></P><P CLASS="indent5">Lists the registered suites and associated tests to file.The listing file is named <I>ROOT-Listing.xml</I>. The filename <I>ROOT</I>can be set using <A HREF="#auto-setroot">CU_set_output_filename()</A>, or else the default<I>CUnitAutomated</I> is used.  Note that if a distict filename <I>ROOT</I>is not set before each run, the listing file will be overwritten.<BR /><BR />The listing file is supported by both a document type definitionfile (<I>CUnit-List.dtd</I>) and XSL stylesheet (<I>CUnit-List.xsl</I>).These are provided in the <I>Share</I> subdirectory of the source and installationtrees.<BR /><BR />Note also that a listing file is not generated automatically by<A HREF="#auto-run">CU_automated_run_tests()</A>.  Client code must explicitly request alisting when one is desired.</P><P ID="auto-setroot" CLASS="indent2"><CITE>void <B>CU_set_output_filename</B>(const char* szFilenameRoot)</CITE></P><P CLASS="indent5">Sets the output filenames for the results and listing files.<I>szFilenameRoot</I> is used to construct the filenames by appending<I>-Results.xml</I> and <I>-Listing.xml</I>, respectively.<H3 ID="basic">5.4. Basic Mode</H3>The basic interface is also non-interactive, with results output to stdout. Thisinterface supports running individual suites or tests, and allows client code tocontrol the type of output displayed during each run.  This interface provides themost flexibility to clients desiring simplified access to the CUnit API.<P />The following public functions are provided:<P ID="basic-runall" CLASS="indent2"><CITE>CU_ErrorCode <B>CU_basic_run_tests</B>(void)</CITE></P><P CLASS="indent5">Runs all tests in all registered suites.  Returns the 1sterror code occurring during the test run.  The type of output is controlledby the current run mode, which can be set using <A HREF="#basic-setmode">CU_basic_set_mode()</A>.<P ID="basic-runsuite" CLASS="indent2"><CITE>CU_ErrorCode <B>CU_basic_run_suite</B>(CU_pSuite pSuite)</CITE></P><P CLASS="indent5">Runs all tests in single specified suite.  Returns the 1sterror code occurring during the test run.  The type of output is controlledby the current run mode, which can be set using <A HREF="#basic-setmode">CU_basic_set_mode()</A>.<P ID="basic-runtest" CLASS="indent2"><CITE>CU_ErrorCode <B>CU_basic_run_test</B>(CU_pSuite pSuite, CU_pTest pTest)</CITE></P><P CLASS="indent5">Runs a single test in a specified suite.  Returns the 1sterror code occurring during the test run.  The type of output is controlledby the current run mode, which can be set using <A HREF="#basic-setmode">CU_basic_set_mode()</A>.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线免费观看| 一区二区在线观看视频| 中文字幕在线一区免费| 亚洲福利一区二区| 成人视屏免费看| 91精品国产综合久久蜜臀| 国产精品国产三级国产aⅴ入口| 午夜精品久久久久久久久久| 99久久夜色精品国产网站| 日韩天堂在线观看| 亚洲五月六月丁香激情| 99免费精品在线观看| 欧美电视剧在线观看完整版| 亚洲综合999| av影院午夜一区| 国产日韩在线不卡| 老司机精品视频线观看86| 欧美日韩国产高清一区| 一区二区三区美女| 91免费看视频| 国产精品短视频| 成人h动漫精品一区二区| 久久久久久久综合| 国产在线看一区| 日韩欧美一二三四区| 天堂va蜜桃一区二区三区| 在线观看区一区二| 亚洲美女视频在线| 91免费视频观看| 亚洲精品免费在线观看| 91免费视频大全| 亚洲综合免费观看高清完整版| 91在线云播放| 中文字幕一区二区三区在线播放| 粉嫩av亚洲一区二区图片| 国产女主播视频一区二区| 国产一区二区精品久久99| 久久先锋影音av鲁色资源网| 国产一区二区三区日韩| 国产校园另类小说区| 国产成人综合在线| 中文字幕一区二区三区在线观看| 99久久精品情趣| 亚洲裸体xxx| 99久久精品99国产精品| 亚洲激情图片小说视频| 精品视频在线免费| 奇米色777欧美一区二区| 日韩欧美色综合网站| 国产福利精品导航| 亚洲色图欧美偷拍| 欧美日韩成人一区二区| 国精产品一区一区三区mba视频 | 日本精品一级二级| 污片在线观看一区二区| 日韩免费视频线观看| 国产成人精品一区二区三区网站观看 | 99久久精品免费看国产免费软件| 国产精品区一区二区三区| 91浏览器在线视频| 日韩电影免费一区| 中文字幕制服丝袜一区二区三区 | 亚洲一区二区三区国产| 91精品婷婷国产综合久久| 国产一区二区看久久| 最新国产成人在线观看| 69堂精品视频| 懂色av中文字幕一区二区三区 | 久久久.com| 欧美影片第一页| 国产一区二区调教| 亚洲黄色av一区| 中文字幕精品三区| 欧美日韩国产一二三| 成人综合婷婷国产精品久久免费| 亚洲一区二区不卡免费| 久久久午夜精品理论片中文字幕| 日本精品一区二区三区高清| 国产乱人伦精品一区二区在线观看| 亚洲欧美偷拍卡通变态| 91精品综合久久久久久| 99久久精品国产麻豆演员表| 精品一区二区三区视频| 亚洲自拍另类综合| 国产人伦精品一区二区| 在线电影一区二区三区| 99视频有精品| 国产成人啪午夜精品网站男同| 亚洲成人黄色小说| 亚洲欧美在线视频观看| 欧美mv日韩mv国产网站| 欧美人妇做爰xxxⅹ性高电影| 国产成人免费视| 蜜桃传媒麻豆第一区在线观看| 国产精品久99| 久久久久国产精品麻豆ai换脸| 91精品久久久久久久99蜜桃| 欧美在线观看你懂的| 91视视频在线观看入口直接观看www| 久久精品99国产国产精| 亚洲综合色噜噜狠狠| 亚洲理论在线观看| 国产精品国产三级国产普通话99 | 91精品国产91综合久久蜜臀| 91毛片在线观看| 92精品国产成人观看免费| 成人一区在线观看| 成人一区二区三区| 成人免费观看男女羞羞视频| 国产精品99久久久久久宅男| 国产一区二区成人久久免费影院| 日本91福利区| 男人的j进女人的j一区| 日韩精品欧美精品| 日本成人在线网站| 精品一区二区三区免费| 免费观看日韩av| 六月丁香综合在线视频| 久久精品免费看| 国模无码大尺度一区二区三区| 青青草国产精品亚洲专区无| 麻豆精品视频在线观看免费 | 性久久久久久久久久久久| 一区二区三区电影在线播| 亚洲乱码国产乱码精品精98午夜 | 精品一区二区三区久久| 国内外成人在线视频| 国产精品一级二级三级| 岛国精品在线观看| 91色九色蝌蚪| 欧美日韩一区二区三区不卡| 91精品国产色综合久久| 久久一夜天堂av一区二区三区| 国产亚洲精品福利| 最近中文字幕一区二区三区| 亚洲国产精品一区二区www | 日韩精品一区二区三区蜜臀| 精品久久久久香蕉网| 久久精品视频在线免费观看| 亚洲天堂2014| 日韩av电影天堂| 丁香一区二区三区| 在线视频中文字幕一区二区| 日韩欧美国产三级| 亚洲欧美自拍偷拍| 蜜臀精品一区二区三区在线观看| 美女视频第一区二区三区免费观看网站 | 精品国产91久久久久久久妲己| 久久久久久日产精品| 亚洲色图色小说| 久久精品99久久久| 一本到高清视频免费精品| 日韩欧美综合在线| 亚洲女厕所小便bbb| 午夜精品一区二区三区三上悠亚 | 91丨porny丨在线| 日韩一区二区三区视频| 国产精品久99| 麻豆精品视频在线| 日本道精品一区二区三区| 精品国产一区二区亚洲人成毛片 | 国内精品视频一区二区三区八戒 | 午夜不卡av免费| 国产不卡在线一区| 777xxx欧美| 亚洲天堂精品视频| 国产老女人精品毛片久久| 欧美丰满一区二区免费视频| 国产精品久久一卡二卡| 狠狠色丁香久久婷婷综合丁香| 在线观看亚洲一区| 国产精品嫩草久久久久| 久久99久久久久久久久久久| 欧美四级电影网| 国产精品久久久久7777按摩| 精品一区二区三区在线观看国产 | 91免费看`日韩一区二区| 精品对白一区国产伦| 午夜精品福利在线| 日本韩国一区二区三区| 一区在线观看免费| 风间由美一区二区三区在线观看| 欧美一区二区美女| 亚洲成人午夜影院| 欧美性xxxxxx少妇| 一区二区成人在线视频| 99久久国产综合精品女不卡| 国产精品五月天| 高清免费成人av| 久久久精品日韩欧美| 国产又黄又大久久| 久久亚洲二区三区| 国产风韵犹存在线视精品| 精品国产一区二区亚洲人成毛片 | 亚洲国产精品尤物yw在线观看| 97久久精品人人做人人爽| 国产精品蜜臀在线观看| av在线不卡电影| 亚洲乱码国产乱码精品精小说| 91久久精品一区二区三区|