1
- # Deryls Testing Framework
1
+ # Testing Framework
2
2
3
- DTF is a pluggable framework for testing shell scripts (at least now).
4
- DTF also is an umbrella which incorporates (eventually) multiple gems, each of which provides additional functionality
5
- to DTF. DTF is the skeleton upon which all other dtf -* gems build.
3
+ TF is a pluggable framework for testing shell scripts (at least now).
4
+ TF also is an umbrella which incorporates (eventually) multiple gems, each of which provides additional functionality
5
+ to TF. TF is the skeleton upon which all other tf -* gems build.
6
6
7
7
8
8
## Usage
9
9
10
- $ gem install dtf
11
- $ dtf <path/to/file>_comment_test.sh
10
+ $ gem install tf
11
+ $ tf <path/to/file>_comment_test.sh
12
+ $ tf --text <path/to/file>_comment_test.sh
12
13
13
14
## Comment tests
14
15
@@ -33,13 +34,13 @@ The test can be negated by replacing `=` with `!=`
33
34
34
35
## Example
35
36
36
- $ bin/dtf example_tests/comment/*
37
+ $ bin/tf example_tests/comment/*
37
38
F..
38
39
##### Processed commands 2 of 2, success tests 2 of 3, failure tests 1 of 3.
39
40
$ false
40
41
# failed: status = 0 # was 1
41
42
42
- $ bin/dtf example_tests/comment/* --text
43
+ $ bin/tf example_tests/comment/* --text
43
44
##### starting test failure.
44
45
$ false
45
46
# failed: status = 0 # was 1
@@ -53,14 +54,18 @@ The test can be negated by replacing `=` with `!=`
53
54
54
55
Framework will load plugins from any available gem and local ` lib/ ` path, for example:
55
56
56
- lib/plugins/dtf /text_output.rb
57
- lib/plugins/dtf /status_test.rb
58
- lib/plugins/dtf /comment_test_input.rb
57
+ lib/plugins/tf /text_output.rb
58
+ lib/plugins/tf /status_test.rb
59
+ lib/plugins/tf /comment_test_input.rb
59
60
60
61
The search pattern is:
61
62
62
- lib/plugins/dtf /*.rb
63
+ lib/plugins/tf /*.rb
63
64
64
65
And plugins are selected with:
65
66
66
- lib/plugins/dtf/*_{input,test,output}.rb
67
+ lib/plugins/tf/*_{input,test,output}.rb
68
+
69
+ ## Thanks
70
+
71
+ - Deryl R. Doucette
0 commit comments