Sha256: 92edc338ae43a01fb518153d28893deffbadb702a054d464fce4baa4b102a39e
Contents?: true
Size: 1.39 KB
Versions: 5
Compression:
Stored size: 1.39 KB
Contents
[<< back](README.md) # Example: 07-readme Create README files (with test instructions) from our test definition. 1. [Definition section](#definition-section) 2. [Execute command](#execute-command) 3. [Result](#result) ## Definition section Take a look at our test definition section (Group): ```ruby group "Customize readme output" do readme "This is our README example." readme "And here we'll see how to use readme keyword" target "Create user david." readme "Help: you can use 'useradd' command to create users." readme "Remember: Only root is permitted to create new users." run "id david" expect "david" end ``` > In this example, localhost's OS must be GNU/Linux (any other compatible OS) because the command used is `id david`. There exists some `readme` instructions after `group` and `target` lines. ## Execute command To generate automatically a README file from previous test, execute this: ``` teuton readme example/learn-08-readme > example/learn-08-readme/README.md ``` ## Result **Let's see the output**: Content of `example/learn-08-readme/README.md` file. --- # learn-08-readme ## Customize readme output This is our README example. And here we'll see how to use readme keyword Go to [LOCALHOST](#required-hosts) host, and do next: * Create user david. * Help: you can use 'useradd' command to create users. * Remember: Only root is permitted to create new users. ---
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.3.11 | docs/learn/08-readme.md |
teuton-2.3.10 | docs/learn/08-readme.md |
teuton-2.3.9 | docs/learn/08-readme.md |
teuton-2.3.8 | docs/learn/08-readme.md |
teuton-2.3.7 | docs/learn/08-readme.md |