shijiang1130 发表于 2015-03-15 20:13

【ct_run.exe】erlang的测试套件

D:\Program Files\erl6.3\bin>ct_run.exe

Eshell V6.3(abort with ^G)
(ct@win)1>
Common Test v1.9 starting (cwd is D:/Program Files/erl6.3/bin)

(ct@win)1>

Usage:

(ct@win)1> Run tests in web based GUI:

      ct_run -vts [-browser Browser]
      [-config ConfigFile1 ConfigFile2 .. ConfigFileN]
      [-decrypt_key Key] | [-decrypt_file KeyFile]
      [-dir TestDir1 TestDir2 .. TestDirN] |
      [-suite Suite [-case Case]]
      [-logopts LogOpt1 LogOpt2 .. LogOptN]
      [-verbosity GenVLvl | ]
      [-include InclDir1 InclDir2 .. InclDirN]
      [-no_auto_compile]
      [-abort_if_missing_suites]
      [-multiply_timetraps N]
      [-scale_timetraps]
      [-create_priv_dir auto_per_run | auto_per_tc | manual_per_tc]
      [-basic_html]

(ct@win)1> Run tests from command line:

      ct_run [-dir TestDir1 TestDir2 .. TestDirN] |
      [-suite Suite1 Suite2 .. SuiteN [-case Case1 Case2 .. CaseN]]
      [-step ]
      [-config ConfigFile1 ConfigFile2 .. ConfigFileN]
      [-userconfig CallbackModule ConfigFile1 .. ConfigFileN]
      [-decrypt_key Key] | [-decrypt_file KeyFile]
      [-logdir LogDir]
      [-logopts LogOpt1 LogOpt2 .. LogOptN]
      [-verbosity GenVLvl | ]
      [-silent_connections ]
      [-stylesheet CSSFile]
      [-cover CoverCfgFile]
      [-cover_stop Bool]
      [-event_handler EvHandler1 EvHandler2 .. EvHandlerN]
      [-ct_hooks CTHook1 CTHook2 .. CTHookN]
      [-include InclDir1 InclDir2 .. InclDirN]
      [-no_auto_compile]
      [-abort_if_missing_suites]
      [-multiply_timetraps N]
      [-scale_timetraps]
      [-create_priv_dir auto_per_run | auto_per_tc | manual_per_tc]
      [-basic_html]
      [-repeat N] |
      [-duration HHMMSS [-force_stop ]] |
      [-until HHMMSS [-force_stop ]]

(ct@win)1> Run tests using test specification:

      ct_run -spec TestSpec1 TestSpec2 .. TestSpecN
      [-config ConfigFile1 ConfigFile2 .. ConfigFileN]
      [-decrypt_key Key] | [-decrypt_file KeyFile]
      [-logdir LogDir]
      [-logopts LogOpt1 LogOpt2 .. LogOptN]
      [-verbosity GenVLvl | ]
      [-allow_user_terms]
      [-join_specs]
      [-silent_connections ]
      [-stylesheet CSSFile]
      [-cover CoverCfgFile]
      [-cover_stop Bool]
      [-event_handler EvHandler1 EvHandler2 .. EvHandlerN]
      [-ct_hooks CTHook1 CTHook2 .. CTHookN]
      [-include InclDir1 InclDir2 .. InclDirN]
      [-no_auto_compile]
      [-abort_if_missing_suites]
      [-multiply_timetraps N]
      [-scale_timetraps]
      [-create_priv_dir auto_per_run | auto_per_tc | manual_per_tc]
      [-basic_html]
      [-repeat N] |
      [-duration HHMMSS [-force_stop ]] |
      [-until HHMMSS [-force_stop ]]

(ct@win)1> Refresh the HTML index files:

      ct_run -refresh_logs [-logdir LogDir] [-basic_html]

(ct@win)1> Run CT in interactive mode:

      ct_run -shell
      [-config ConfigFile1 ConfigFile2 .. ConfigFileN]
      [-decrypt_key Key] | [-decrypt_file KeyFile]

(ct@win)1>
Test run failed! Reason:
missing_start_options


(ct@win)1>

shijiang1130 发表于 2015-03-15 20:19

很强大,有多种模式
1. Run tests from command line
2. Run tests using test specification
3. Run tests in web based GUI
4. Refresh the HTML index files
5. Run CT in interactive mode
6. Start a Common Test Master node

shijiang1130 发表于 2015-06-12 10:50

C:\dc_comic>rebar ct
==> dc_comic (ct)
DONE.
Testing Desktop.dc_comic: TEST COMPLETE, 0 ok, 0 failed, 1 skipped of 1 test cas
es
页: [1]
查看完整版本: 【ct_run.exe】erlang的测试套件