Class: Allure::TestPlan

Inherits:
Object
  • Object
show all
Extended by:
JsonHelper
Defined in:
allure-ruby-commons/lib/allure_ruby_commons/testplan.rb

Constant Summary collapse

TESTPLAN_PATH =

Returns test plan path env var name.

Returns:

  • (String)

    test plan path env var name

"ALLURE_TESTPLAN_PATH"

Constants included from JsonHelper

JsonHelper::OJ_OPTIONS

Class Method Summary collapse

Methods included from JsonHelper

dump_json, json_parse_error, load_json

Class Method Details

.test_idsArray

Allure id’s of executable tests

Returns:

  • (Array)


14
15
16
# File 'allure-ruby-commons/lib/allure_ruby_commons/testplan.rb', line 14

def test_ids
  @test_ids ||= tests&.map { |test| test[:id] }
end

.test_namesArray

Test names of executable tests

Returns:

  • (Array)


21
22
23
# File 'allure-ruby-commons/lib/allure_ruby_commons/testplan.rb', line 21

def test_names
  @test_names ||= tests&.map { |test| test[:selector] }
end