class Allure::TestPlan
Constants
- TESTPLAN_PATH
@return [String] test plan path env var name
Public Class Methods
test_ids()
click to toggle source
Allure
id's of executable tests
@return [Array]
# File lib/allure_ruby_commons/testplan.rb, line 12 def test_ids @test_ids ||= tests&.map { |test| test[:id] } end
test_names()
click to toggle source
Test names of executable tests
@return [Array]
# File lib/allure_ruby_commons/testplan.rb, line 19 def test_names @test_names ||= tests&.map { |test| test[:selector] } end
Private Class Methods
tests()
click to toggle source
Tests to execute from allure testplan.json
@return [Array<Hash>]
# File lib/allure_ruby_commons/testplan.rb, line 28 def tests @tests ||= Oj.load_file(ENV[TESTPLAN_PATH], symbol_keys: true)&.fetch(:tests) if ENV[TESTPLAN_PATH] rescue Oj::ParseError nil end