Skip to content

Latest commit

 

History

History
86 lines (66 loc) · 2.7 KB

example_run.md

File metadata and controls

86 lines (66 loc) · 2.7 KB

<< back

  1. Run test
  2. Command options
  3. Choosing config file

1. Run test

Running Teuton test located into example/01-target folder.

teuton run example/01-target

Example:

------------------------------------
Started at 2023-01-21 13:32:24 +0000
F
Finished in 0.004 seconds
------------------------------------

CASE RESULTS
+------+-----------+-------+-------+
| CASE | MEMBERS   | GRADE | STATE |
| 01   | anonymous | 0.0   | ?     |
+------+-----------+-------+-------+

2. Command options

> teuton help run

Usage:
  teuton [run] [OPTIONS] DIRECTORY

Options:
  [--export=EXPORT]        
  [--cname=CNAME]          
  [--cpath=CPATH]          
  [--case=CASE]            
  [--color], [--no-color]  
  [--quiet], [--no-quiet]     
ID Command Descriptiont
01 teuton foo Run foo/start.rb, with config file foo/config.yaml
02 teuton run foo Run foo/start.rb, with config file foo/config.yaml
03 ruby teuton foo Same as 01 on Windows OS
04 ruby teuton run foo Same as 02 on WIndows OS
05 teuton . Run ./start.rb with ./config.yaml file
06 teuton run --export=json foo Run foo/start.rb and force json format during exporting. Others output formats availables are: txt, colored_text, json, yaml
07 teuton run --cname=rock foo Run foo/start.rb with foo/rock.yaml config file
08 teuton foo/demo42.rb Run foo/demo42.rb with foo/demo42.yaml config file
08 teuton run --cpath=starwars/jedi.yaml foo Run foo/start.rb with starwars/jedi.yaml config file
09 teuton run --case=6,16 foo Run foo/start.rb with foo/config.yaml config file but only for case id '06' and '16'

3. Choosing config file

Default names:: By default, when you run teuton run foo, this will search for:

  • foo/start.rb test file and
  • foo/config.yaml config file.

Using cname param: It's posible execute teuton run --cname=rock foo, and choose diferent config file into projet folder:

  • foo/start.rb test file and
  • foo/rock.yaml config file.

cname param searchs YAML config file into the same project folder.

Using cpath param: An also, it's posible execute teuton run --cpath=/home/david/startwars.yaml foo, and choose config file using its absolute path:

  • foo/start.rb test file and
  • /home/david/starwars.yaml config file.

cpath param selects YAML config file, from the specified path.

Using diferent main rb name: When you execute teuton run foo/mazingerz.rb, this will search for:

  • foo/mazingerz.rb test file and
  • foo/mazingerz.yaml config file.