cucumber-tcl 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,60 @@
1
+ Feature: Sourcing tcl files
2
+
3
+ Scenario: Display stack trace when there is an error in a sourced file
4
+ Given a file named "features/test.feature" with:
5
+ """
6
+ Feature:
7
+ Scenario:
8
+ Given testing file sourcing
9
+ """
10
+ And a file named "features/support/env.rb" with:
11
+ """
12
+ require 'cucumber/tcl'
13
+ """
14
+ And a file named "features/support/helper.tcl" with:
15
+ """
16
+ error "Fail sourcing"
17
+ """
18
+ When I run `cucumber`
19
+ Then it should fail with:
20
+ """
21
+ Fail sourcing
22
+ while executing
23
+ "error "Fail sourcing""
24
+ (file "features/support/helper.tcl" line 1)
25
+ invoked from within
26
+ "source $x" (Tcl::Error)
27
+ """
28
+
29
+ Scenario: Display stack trace with multiple levels
30
+ Given a file named "features/test.feature" with:
31
+ """
32
+ Feature:
33
+ Scenario:
34
+ Given testing file sourcing
35
+ """
36
+ And a file named "features/support/env.rb" with:
37
+ """
38
+ require 'cucumber/tcl'
39
+ """
40
+ And a file named "features/support/helper.tcl" with:
41
+ """
42
+ proc test_proc args {
43
+ proc_doesnt_exist
44
+ }
45
+
46
+ test_proc
47
+ """
48
+ When I run `cucumber`
49
+ Then it should fail with:
50
+ """
51
+ invalid command name "proc_doesnt_exist"
52
+ while executing
53
+ "proc_doesnt_exist"
54
+ (procedure "test_proc" line 2)
55
+ invoked from within
56
+ "test_proc"
57
+ (file "features/support/helper.tcl" line 5)
58
+ invoked from within
59
+ "source $x" (Tcl::Error)
60
+ """
@@ -108,7 +108,9 @@ proc ::cucumber::source_steps args {
108
108
  if {$TEST ne 1} {
109
109
  #TODO let that path be configurable from cucumber-ruby
110
110
  foreach x [glob -nocomplain features/**/*.tcl] {
111
- source $x
111
+ if {[catch {source $x} msg]} {
112
+ error $::errorInfo
113
+ }
112
114
  }
113
115
  }
114
116
  }
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-tcl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-05-27 00:00:00.000000000 Z
14
+ date: 2015-06-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ruby-tcl
@@ -125,6 +125,7 @@ files:
125
125
  - features/data_tables.feature
126
126
  - features/define_a_step.feature
127
127
  - features/doc_strings.feature
128
+ - features/file_sourcing.feature
128
129
  - features/pending_step.feature
129
130
  - features/reset_state.feature
130
131
  - features/support/aruba.rb
@@ -164,6 +165,6 @@ rubyforge_project:
164
165
  rubygems_version: 1.8.23
165
166
  signing_key:
166
167
  specification_version: 3
167
- summary: cucumber-tcl-0.0.5
168
+ summary: cucumber-tcl-0.0.6
168
169
  test_files: []
169
170
  has_rdoc: