teuton 2.4.1 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/docs/changelog/todo.md +1 -0
  4. data/docs/changelog/v2.4.md +9 -0
  5. data/docs/commands/README.md +8 -17
  6. data/docs/commands/example_check.md +4 -4
  7. data/docs/commands/example_run.md +10 -32
  8. data/docs/dsl/README.md +27 -39
  9. data/docs/dsl/{definition/expect.md → expect.md} +2 -18
  10. data/docs/dsl/{execution/export.md → export.md} +1 -6
  11. data/docs/dsl/{setting/get.md → get.md} +4 -10
  12. data/docs/dsl/{definition/group.md → group.md} +2 -7
  13. data/docs/dsl/{execution/play.md → play.md} +1 -6
  14. data/docs/dsl/{definition/result.md → result.md} +1 -6
  15. data/docs/dsl/{definition/run_remote.md → run.md} +57 -23
  16. data/docs/dsl/{execution/send.md → send.md} +1 -8
  17. data/docs/dsl/{setting/set.md → set.md} +1 -7
  18. data/docs/dsl/{execution/show.md → show.md} +7 -16
  19. data/docs/dsl/target.md +33 -0
  20. data/docs/ideas/todo.md +35 -115
  21. data/docs/learn/01-cmd_new.md +28 -0
  22. data/docs/learn/{01-target.md → 02-target.md} +13 -17
  23. data/docs/learn/03-remote_hosts.md +59 -87
  24. data/docs/learn/04-config.md +147 -0
  25. data/docs/learn/05-use.md +25 -45
  26. data/docs/learn/06-cmd_check.md +50 -0
  27. data/docs/learn/07-target_weight.md +44 -0
  28. data/docs/learn/08-unique_values.md +70 -0
  29. data/docs/learn/09-send.md +20 -0
  30. data/docs/learn/10-debug.md +45 -0
  31. data/docs/learn/11-export.md +35 -0
  32. data/docs/learn/{09-preserve.md → 12-preserve.md} +0 -0
  33. data/docs/learn/{17-hide-feedback.md → 13-feedback.md} +20 -23
  34. data/docs/learn/14-moodle_id.md +24 -0
  35. data/docs/learn/{08-readme.md → 15-readme.md} +5 -9
  36. data/docs/learn/{13-include.md → 16-include.md} +1 -3
  37. data/docs/learn/{14-alias.md → 17-alias.md} +0 -0
  38. data/docs/learn/{07-log.md → 18-log.md} +19 -23
  39. data/docs/learn/{12-get_vars.md → 19-read_vars.md} +3 -3
  40. data/docs/learn/20-macros.md +49 -0
  41. data/docs/learn/{16-exit_codes.md → 21-exit_codes.md} +0 -0
  42. data/docs/learn/{10-result.md → 22-result.md} +3 -3
  43. data/docs/learn/23-test-code.md +54 -0
  44. data/docs/learn/24-test-sql.md +69 -0
  45. data/docs/learn/README.md +24 -18
  46. data/lib/teuton/application.rb +0 -5
  47. data/lib/teuton/case_manager/case/case.rb +1 -1
  48. data/lib/teuton/case_manager/case/dsl/expect.rb +9 -2
  49. data/lib/teuton/case_manager/case/dsl/goto.rb +1 -1
  50. data/lib/teuton/case_manager/case/dsl/log.rb +5 -3
  51. data/lib/teuton/case_manager/case/dsl/target.rb +1 -1
  52. data/lib/teuton/case_manager/case/result/ext_compare.rb +20 -21
  53. data/lib/teuton/case_manager/case/result/ext_filter.rb +15 -8
  54. data/lib/teuton/check/show.rb +1 -1
  55. data/lib/teuton/files/config.yaml +1 -2
  56. data/lib/teuton/files/start.rb +4 -4
  57. data/lib/teuton/readme/dsl.rb +9 -1
  58. data/lib/teuton/readme/readme.rb +8 -1
  59. data/lib/teuton/report/show.rb +8 -0
  60. data/lib/teuton/version.rb +1 -1
  61. metadata +68 -54
  62. data/docs/dsl/definition/run_local.md +0 -33
  63. data/docs/dsl/definition/target.md +0 -40
  64. data/docs/learn/02-config.md +0 -117
  65. data/docs/learn/04-new_test.md +0 -87
  66. data/docs/learn/06-debug.md +0 -110
  67. data/docs/learn/11-moodle_id.md +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4abcfe5aee651ce09c17012de250c39c6286b3d11ba00462f6ab285224d65d49
4
- data.tar.gz: 1158d3a447ad5c0a9c8b2cc7e524fa8c235d00492243f6959be890c379c9ea12
3
+ metadata.gz: 4737382a68bd95498f1fcfe7fab7dd674170ac21e56aeea7761cea9c7edb2c58
4
+ data.tar.gz: 00bbd221c4251ad369a3829eb67d32fce2d05c15a9af764f76874031bc26dc0f
5
5
  SHA512:
6
- metadata.gz: 3006a5ecbb9b8ee634b62704d80911175c9a02e3e0e2d7388e191071bd27a8accbd89871139252f0e587ead1be3feac6bee7f0e04ba40cb734660173215aa4d9
7
- data.tar.gz: 4c47dbe5964231ca099dd530beac2ba4266b085fe8f0c8a93473f4f8089bdede91cbdcf94b6bb463b9f6686b38930de250cba7f478530dd4d47ceee9c5d32c9a
6
+ metadata.gz: bc557091ed6ae131bf925a0da452b34e01a64ee95ffa1cdc52f17742920614c8126ba66e5c2bd830f901dd3acbb8cc644be604ae267eddd60b3937915d3f3b83
7
+ data.tar.gz: 9cd807f54792d0cf64d53a5ff82d03ca8e7e3eaf49338d511948defeaa802731ee1c8cb96ec07192d2c415c8ef113ddd180a3ed60a0bf0421ba12d314b12b601
data/README.md CHANGED
@@ -52,8 +52,8 @@ CASE RESULTS
52
52
  # Documentation
53
53
 
54
54
  * [Learn](docs/learn/README.md)
55
- * [Commands](docs/commands/README.md)
56
55
  * [Language reference](docs/dsl/README.md)
56
+ * [Commands](docs/commands/README.md)
57
57
  * [Installation](docs/install/README.md)
58
58
 
59
59
  > [Blogs and videos](docs/videos.md)
@@ -70,3 +70,5 @@ CASE RESULTS
70
70
  1. Commit your changes (`git commit -am 'Add some feature'`)
71
71
  1. Push to the branch (`git push origin my-new-feature`)
72
72
  1. Create new Pull Request.
73
+
74
+ You can also [create issues](https://github.com/teuton-software/teuton/issues) with your requests/incidences/suggestions.
@@ -2,6 +2,7 @@
2
2
  ## TO-DO
3
3
 
4
4
  New features:
5
+ - Parse new input format, and detect parse errors
5
6
  - Teuton readme --lang=es
6
7
  - Export files with other langs
7
8
 
@@ -1,4 +1,13 @@
1
1
 
2
+ ## [2.4.3]
3
+
4
+ - Fix: "expect_none" without params works as "expect result.count.eq 0"
5
+ - Add: "expect_nothing" that works as "expect result.count.eq 0".
6
+
7
+ ## [2.4.2]
8
+
9
+ - Fix bug with result.grep_v(Array)
10
+
2
11
  ## [2.4.0]
3
12
 
4
13
  New features:
@@ -11,8 +11,6 @@ Available command functions:
11
11
 
12
12
  # 1. Show help
13
13
 
14
- Usage:
15
-
16
14
  ```bash
17
15
  teuton
18
16
  ```
@@ -32,14 +30,13 @@ Commands:
32
30
  ```
33
31
 
34
32
  Alias:
33
+
35
34
  * `teuton h`
36
35
  * `teuton -h`
37
36
  * `teuton --help`
38
37
 
39
38
  # 2. Show version
40
39
 
41
- Usage:
42
-
43
40
  ```bash
44
41
  teuton version
45
42
  ```
@@ -52,23 +49,22 @@ teuton (version 2.2.0)
52
49
  ```
53
50
 
54
51
  Alias:
52
+
55
53
  * `teuton v`
56
54
  * `teuton -v`
57
55
  * `teuton --version`
58
56
 
59
57
  # 3. Create new test
60
58
 
61
- Usage:
59
+ Create teuton test skeleton.
62
60
 
63
61
  ```bash
64
62
  teuton new foo
65
63
  ```
66
64
 
67
- Description: Create teuton test skeleton.
68
-
69
65
  Example:
70
66
 
71
- ```bash
67
+ ```console
72
68
  > teuton new foo
73
69
 
74
70
  [INFO] Creating foo project skeleton
@@ -86,15 +82,14 @@ This command will create the next structure:
86
82
  | foo/config.yaml | YAML configuration file |
87
83
 
88
84
  Alias:
85
+
89
86
  * `teuton n foo`
90
87
  * `teuton -n foo`
91
88
  * `teuton --new foo`
92
89
 
93
90
  # 4. Check teuton test
94
91
 
95
- Usage:
96
-
97
- ```bash
92
+ ```console
98
93
  teuton check DIRPATH
99
94
  ```
100
95
 
@@ -110,14 +105,13 @@ Description: this command check teuton test and config files located into DIRPAT
110
105
  | teuton check path/to/file/foo.rb --cname=demo | Test content of foo.rb and demo.yaml files.|
111
106
 
112
107
  Alias:
108
+
113
109
  * `teuton c foo`
114
110
  * `teuton -c foo`
115
111
  * `teuton --check foo`
116
112
 
117
113
  # 5. Run teuton test
118
114
 
119
- Usage:
120
-
121
115
  ```bash
122
116
  teuton run DIRPATH
123
117
  ```
@@ -127,18 +121,15 @@ Description: this command run teuton test located into DIRPATH folder.
127
121
  [Example](example_run.md)
128
122
 
129
123
  Alias:
124
+
130
125
  * `teuton foo`
131
126
 
132
127
  # 6. Show README
133
128
 
134
- Usage:
135
-
136
129
  ```bash
137
130
  teuton readme DIRPATH
138
131
  ```
139
132
 
140
- Description:
141
-
142
133
  Read test and config files content, and display information about
143
134
  what kind of problem/exercise it is going to be evaluated. The students need this
144
135
  information to resolv the problem/exercise into their machines.
@@ -2,18 +2,18 @@
2
2
 
3
3
  # Check Teuton Test
4
4
 
5
- Objective: Revise Teuton test located into `example\learn-01-target`.
5
+ Objective: Revise Teuton test located into `example\01-target`.
6
6
 
7
7
  Usage:
8
8
 
9
9
  ```
10
- teuton check examples/learn-01-target
10
+ teuton check examples/01-target
11
11
  ```
12
12
 
13
13
  Example:
14
14
 
15
15
  ```bash
16
- > teuton check examples/learn-01-target
16
+ teuton check examples/01-target
17
17
 
18
18
  +----------------------------+
19
19
  | GROUP: Learn about targets |
@@ -39,7 +39,7 @@ Example:
39
39
  +----------------------+
40
40
  | Revising CONFIG file |
41
41
  +----------------------+
42
- [WARN] File /mnt/home/leap/proy/repos/teuton.d/teuton/examples/learn-01-target/config.yaml not found!
42
+ [WARN] File .../examples/01-target/config.yaml not found!
43
43
  [INFO] Recomended content:
44
44
  ---
45
45
  :global:
@@ -7,55 +7,33 @@
7
7
 
8
8
  # 1. Run test
9
9
 
10
- Description: Running Teuton test located into `example/learn-01-target` folder.
11
-
12
- Usage:
10
+ Running Teuton test located into `example/01-target` folder.
13
11
 
14
12
  ```bash
15
- teuton run example/learn-01-target
13
+ teuton run example/01-target
16
14
  ```
17
15
 
18
16
  Example:
19
17
 
20
18
  ```bash
21
- > teuton run examples/learn-01-target
22
-
23
- ==================================
24
- Executing [teuton] (version 2.1.9)
25
- [INFO] Running in parallel (2020-04-19 14:09:41 +0100)
26
- .
27
- [INFO] Duration = 0.004 (2020-04-19 14:09:41 +0100)
28
- ==================================
29
-
30
- INITIAL CONFIGURATIONS
31
- +---------------+-------------------------------------------+
32
- | tt_title | Executing [teuton] (version 2.1.9) |
33
- | tt_scriptname | examples/learn-01-target/start.rb |
34
- | tt_configfile | examples/learn-01-target/config.yaml |
35
- | tt_pwd | /mnt/home/leap/proy/repos/teuton.d/teuton |
36
- | tt_testname | learn-01-target |
37
- | tt_sequence | false |
38
- +---------------+-------------------------------------------+
19
+ ------------------------------------
20
+ Started at 2023-01-21 13:32:24 +0000
21
+ F
22
+ Finished in 0.004 seconds
23
+ ------------------------------------
39
24
 
40
25
  CASE RESULTS
41
26
  +------+-----------+-------+-------+
42
27
  | CASE | MEMBERS | GRADE | STATE |
43
- | 01 | anonymous | 100.0 | |
28
+ | 01 | anonymous | 0.0 | ? |
44
29
  +------+-----------+-------+-------+
45
-
46
- FINAL VALUES
47
- +-------------+---------------------------+
48
- | start_time | 2020-04-19 14:09:41 +0100 |
49
- | finish_time | 2020-04-19 14:09:41 +0100 |
50
- | duration | 0.004231917 |
51
- +-------------+---------------------------+
52
30
  ```
53
31
 
54
32
  # 2. Command options
55
33
 
56
- Usage: `teuton help run`
57
-
58
34
  ```
35
+ > teuton help run
36
+
59
37
  Usage:
60
38
  teuton [run] [OPTIONS] DIRECTORY
61
39
 
data/docs/dsl/README.md CHANGED
@@ -1,55 +1,43 @@
1
1
  [<< back](../../README.md)
2
2
 
3
- # Teuton language
3
+ # Language keywords
4
4
 
5
- To define and run our activity test we use the next DSL keywords:
6
- 1. [Definition instructions](#definition-instructions)
7
- 2. [Execution instructions](#execution-instructions)
8
- 3. [Setting instructions](#setting-instructions)
9
- 4. [Ruby language](#ruby-language)
5
+ To define our targets, and to run our tests, we use the next DSL keywords:
10
6
 
11
- ## Definition instructions
7
+ Types:
12
8
 
13
- These are the main DSL key words, usefull to define items to be evaluated.
9
+ * **Definition DSL**: keywords to define targets/items to be checked/evaluated.
10
+ * **Execution DSL**: keywords used to specify accions related with reports and showing information.
11
+ * **Settings DSL**: keyword to read and write config file.
14
12
 
15
- | DSL | Description |
16
- | :----------------------------- | :---------- |
17
- | [group](definition/group.md) | Define a group of items to check. |
18
- | [target](definition/target.md) | Define a target. This is the item to be checked. |
19
- | Remote [run](definition/run_remote.md)| Execute command into remote host. |
20
- | Local [run](definition/run_local.md) | Execute command into local host. |
21
- | [result](definition/result.md) | Contain the output of previous `run` order. |
22
- | [expect](definition/expect.md) | Check the obtained result with the expected value. |
13
+ ## Keyword table
23
14
 
24
- ## Execution instructions
15
+ | DSL | Type | Descripción |
16
+ | :------------------ | :--------: | :-------------------------------- |
17
+ | [expect](expect.md) | Definition | Check the obtained result with the expected value. |
18
+ | [export](export.md) | Execution | Make reports with the results of every evaluation. |
19
+ | [get](get.md) | Settings | Read param value from configuration file. |
20
+ | [group](group.md) | Definition | Define a group of items to check. |
21
+ | [play](play.md) | Execution | Run the challenge. |
22
+ | [result](result.md) | Definition | Contain the output of previous `run` order. |
23
+ | [run](run.md)| Definition | Execute command into remote host or localhost. |
24
+ | [target](target.md) | Definition | Define a target. This is the item to be checked. |
25
+ | [send](send.md) | Execution | Send copy of report file to remote host. |
26
+ | [set](set.md) | Settings | Set new param value for running configuration. |
27
+ | [show](show.md) | Execution | Show the results on screen. |
25
28
 
26
- DSL key word related with reports and information.
29
+ ### Programming language
27
30
 
28
- | DSL | Descripción |
29
- | :---------------------------- | :--------------------------------------- |
30
- | [play](execution/play.md) | Run the challenge. |
31
- | [show](execution/show.md) | Show the results on screen. |
32
- | [export](execution/export.md) | Make reports with the results of every evaluation. |
33
- | [send](execution/send.md) | Send copy of report file to remote host. |
31
+ It is possible to use Ruby language programming into Teuton tests. For example, in the definition of our test (iterators, arrays, etc.). Useful when we have repetitive lines, etc.
34
32
 
35
- ## Setting instructions
33
+ Example, how to create 4 target evaluation using a List/Array:
36
34
 
37
- | DSL | Descripción |
38
- | :-------------------- | :--------------------------------------------- |
39
- | [get](setting/get.md) | Read param value from configuration file. |
40
- | [set](setting/set.md) | Set new param value for running configuration. |
41
-
42
- ## Ruby language
43
-
44
- It is possible to use ruby language programming structures, in the definition of our test (iterators, arrays, etc.). Useful when we have repetitive lines, etc.
45
-
46
- Example, how to create 4 target evaluation using an Array:
47
35
  ```ruby
48
36
  users = ['Obiwan', 'Yoda', 'Maul', 'Vader']
49
37
 
50
- users.each do |user|
51
- target "Exist user #{user}"
52
- run "id #{user}", on: :host1
53
- expect_one user
38
+ for name in users do
39
+ target "Exist user #{name}"
40
+ run "id #{name}", on: :host1
41
+ expect_one name
54
42
  end
55
43
  ```
@@ -1,25 +1,9 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Example](#example)
6
- 4. [Basic](#basic)
7
- 5. [Advanced](#advanced)
8
-
9
- ## Description
3
+ # expect
10
4
 
11
5
  Compare the obtained result with the expected one. This comparation process is registered into final report.
12
6
 
13
- ## Usage
14
-
15
- ```ruby
16
- target 'Exist user obiwan'
17
- run 'cat /etc/passwd'
18
- expect 'root'
19
- ```
20
-
21
- Use `expect` keyword to check output (from previous execution).
22
-
23
7
  ## Example
24
8
 
25
9
  Let's see some examples:
@@ -27,7 +11,7 @@ Let's see some examples:
27
11
  ```ruby
28
12
  target 'Exist user obiwan'
29
13
  run 'id obiwan'
30
- expect 'obiwan' # Expect previous command output contains obiwan text
14
+ expect 'obiwan' # Expect previous run command output contains obiwan text
31
15
  ```
32
16
 
33
17
  ## Basic
@@ -1,11 +1,6 @@
1
1
  [<< back](../../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Example](#example)
5
- 3. [Options](#options)
6
- 4. [Usage](#usage)
7
-
8
- ## Description
3
+ # export
9
4
 
10
5
  Create reports and save then into `var/TEST-NAME` folder.
11
6
 
@@ -1,22 +1,16 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Examples](#examples)
3
+ # get
6
4
 
7
- ## Description
8
-
9
- `get` read param value from configuration file.
10
-
11
- ## Usage
5
+ `get` reads param value from configuration file.
12
6
 
13
7
  ```ruby
14
8
  get(PARAM)
15
9
  ```
16
10
 
17
- ## Examples
11
+ ## Example
18
12
 
19
- **Reading example**: Suppose we have this `config.yaml` content:
13
+ **Reading Example**. Suppose we have this `config.yaml` content:
20
14
 
21
15
  ```yaml
22
16
  ---
@@ -1,13 +1,8 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
3
+ # group
5
4
 
6
- ## Description
7
-
8
- Groups targets/goals.
9
-
10
- ## Usage
5
+ Groups targets.
11
6
 
12
7
  ```ruby
13
8
  group "Group name" do
@@ -1,14 +1,9 @@
1
1
  [<< back](../../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
-
6
- ## Description
3
+ # play
7
4
 
8
5
  DSL keyword that starts the execution of all targets/goals (defined into groups). We put this instruction at the end of every script, so it begin running the tests over the machines.
9
6
 
10
- ## Usage
11
-
12
7
  ```ruby
13
8
  play do
14
9
  ...
@@ -1,11 +1,6 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Example 1](#example-1)
5
- 3. [Example 2](#example-2)
6
- 4. [Functions](#functions)
7
-
8
- ## Description
3
+ # result
9
4
 
10
5
  **result** object saves the output from previous execution.
11
6
  It is usefull to build advanced `expect result...` sentences.
@@ -1,32 +1,78 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Examples](#examples)
6
- 4. [Protocol](#protocol)
3
+ # Run
7
4
 
8
- ## Description
5
+ * [Local execution](#local-run)
6
+ * [Remote execution](#remote-run)
9
7
 
10
- Connect to remote host and executes command. The command output is saved into **result** object.
8
+ # Local run
9
+
10
+ Execute command on localhost and save output into result object.
11
+
12
+ ```ruby
13
+ run "id COMMAND"
14
+ ```
15
+
16
+ ## Alias
11
17
 
12
- ## Usage
18
+ In fact it's the same as doing next:
19
+
20
+ ```ruby
21
+ run "COMMAND", on: :localhost
22
+ ```
23
+
24
+ ```ruby
25
+ run "COMMAND", on: 127.0.0.1
26
+ ```
27
+
28
+ ```ruby
29
+ run "COMMAND", on: 'localhost'
30
+ ```
31
+
32
+ ## Example
33
+
34
+ ```ruby
35
+ run "id david"
36
+ ```
37
+
38
+ * This instruction execute "id david" command on local machine, and save results into **result** object.
39
+ * Local machine is where the `Teuton` program is running.
40
+
41
+ ---
42
+ # Remote run
43
+
44
+ Connect to remote host and executes command. The command output is saved into **result** object.
13
45
 
14
46
  ```ruby
15
47
  run "COMMAND", on: :hostID
16
- on :hostID, run: "COMMAND"
17
- goto :hostID, :exec => "COMMAND"
18
48
  ```
19
- > ADVISE: I know that programers dislike `goto` sentence, but this is diferent. Think of it as english speaker, not as developer.
20
49
 
21
50
  * This example connect to remote host identified by `hostID`. Then we execute the command into it and save the output commadn into result object.
22
51
  * Label `hostID` identifies specific machine. Host information (ip, username, password, protocol) cames from config file.
23
52
 
53
+ ## Alias
54
+
55
+ I know that programers dislike `goto` sentence, but this is diferent. Think of it as english speaker, not as developer.
56
+
57
+ ```ruby
58
+ on :hostID, run: "COMMAND"
59
+ ```
60
+
61
+ ```ruby
62
+ goto :hostID, :exec => "COMMAND"
63
+ ```
64
+
24
65
  ## Examples
25
66
 
26
67
  Execute `id obiwan` comand into remote host `:linux1`.
27
68
 
28
- ```Ruby
69
+ ```ruby
29
70
  run "id obiwan", on: :linux1
71
+ ```
72
+
73
+ ## Deprecated
74
+
75
+ ```ruby
30
76
  run "id obiwan", :on => :linux1
31
77
  on :linux1, run: "id obiwan"
32
78
  on :linux1, :run => "id obiwan"
@@ -34,18 +80,6 @@ goto :linux1, exec: "id obiwan"
34
80
  goto :linux1, :exec => "id obiwan"
35
81
  ```
36
82
 
37
- Execute `id yoda` command into `localhost`.
38
-
39
- ```Ruby
40
- run "id yoda"
41
- run "id yoda", on: :localhost
42
- run "id yoda", :on => :localhost
43
- on :localhost, run: "id yoda"
44
- on :localhost, :run => "id yoda"
45
- goto :localhost, :exec => "id yoda"
46
- goto :localhost, :execute => "id yoda"
47
- ```
48
-
49
83
  ## Protocol
50
84
 
51
85
  **SSH connection**
@@ -1,16 +1,9 @@
1
1
  [<< back](../../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Parameters](#parameters)
6
- 4. [Send several reports](#send-several-reports)
7
-
8
- ## Description
3
+ # send
9
4
 
10
5
  `send` is used to copy Teuton reports into remote machines.
11
6
 
12
- ## Usage
13
-
14
7
  ```ruby
15
8
  start do
16
9
  export
@@ -1,15 +1,9 @@
1
1
  [<< back](../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Example](#example)
6
-
7
- ## Description
3
+ # set
8
4
 
9
5
  `set` create new temporaly param value for running configuration.
10
6
 
11
- ## Usage
12
-
13
7
  ```ruby
14
8
  set(:param1, 'value')
15
9
  ```
@@ -1,36 +1,27 @@
1
1
  [<< back](../../README.md)
2
2
 
3
- 1. [Description](#description)
4
- 2. [Usage](#usage)
5
- 3. [Parameters](#parameters)
6
-
7
- ## Description
3
+ # show
8
4
 
9
5
  When all tests are finished, the `show` command displays information on the screen about the final results.
10
6
 
11
- ## Usage
12
-
13
7
  ```ruby
14
8
  start do
15
9
  show
16
10
  end
17
11
  ```
18
12
 
19
- or
20
-
21
- ```ruby
22
- start do
23
- show verbose: 1
24
- end
25
- ```
26
-
27
- ## Parameters
13
+ ## Verbosity
28
14
 
29
15
  | Action | Description |
30
16
  | -------------------- | --------------------------------- |
31
17
  | `show` | Same as `show level: 0` (Default) |
32
18
  | `show verbose: NUMBER` | NUMBER is the value of the verbose level |
33
19
 
20
+ ```ruby
21
+ start do
22
+ show verbose: 1
23
+ end
24
+ ```
34
25
 
35
26
  | Verbosity level | Description |
36
27
  | :-------------: | ----------- |
@@ -0,0 +1,33 @@
1
+ [<< back](../README.md)
2
+
3
+ # target
4
+
5
+ `target` instruction is used to begin every new target and sets its description.
6
+
7
+ ```ruby
8
+ target "Write here your description"
9
+ ```
10
+
11
+ Describe your targets so everybody could understand what is going to be measured. This text will be shown into reports to help us understand output information easily.
12
+
13
+ ## Weight
14
+
15
+ By default weight is `1.0`, but it's posible specified other values:
16
+
17
+ ```ruby
18
+ target "Write here your description", weight: 2.5
19
+ ```
20
+
21
+ ## [DEPRECATED] Alias
22
+
23
+ `goal` keyword is an alias of `target`. So it's the same:
24
+
25
+ ```ruby
26
+ target "Write here your description"
27
+ ```
28
+
29
+ or
30
+
31
+ ```ruby
32
+ goal "Write here your description"
33
+ ```