Class: ParallelCucumber::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel_cucumber/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, env) ⇒ TestCase

Returns a new instance of TestCase.



8
9
10
11
# File 'lib/parallel_cucumber/test_case.rb', line 8

def initialize(location, env)
  @location = location
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



5
6
7
# File 'lib/parallel_cucumber/test_case.rb', line 5

def env
  @env
end

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/parallel_cucumber/test_case.rb', line 6

def location
  @location
end

Instance Method Details

#to_jsonObject



13
14
15
16
17
18
# File 'lib/parallel_cucumber/test_case.rb', line 13

def to_json
  {
    location: @location,
    env: env
  }.to_json
end