Class: Modsvaskr::TestsSuites::NpcHead
- Inherits:
-
Npc
- Object
- Modsvaskr::TestsSuite
- Npc
- Modsvaskr::TestsSuites::NpcHead
- Defined in:
- lib/modsvaskr/tests_suites/npc_head.rb
Overview
Test NPCs by taking head screenshots
Instance Method Summary collapse
-
#discover_tests ⇒ Object
Discover the list of tests information that could be run.
-
#in_game_tests_suite ⇒ Object
Return the in-game tests suite to which we forward the tests to be run.
Methods included from InGameTestsSuite
#in_game_tests_for, #parse_auto_tests_statuses_for
Methods inherited from Modsvaskr::TestsSuite
#clear_tests, #initialize, #statuses, #statuses=
Methods included from Logger
#log, #out, #wait_for_user_enter
Methods included from RunCmd
Constructor Details
This class inherits a constructor from Modsvaskr::TestsSuite
Instance Method Details
#discover_tests ⇒ Object
Discover the list of tests information that could be run.
- API
-
This method is mandatory
-
- Result
-
Hash< String, Hash<Symbol,Object> >: Ordered hash of test information, per test name
23 24 25 26 27 28 29 |
# File 'lib/modsvaskr/tests_suites/npc_head.rb', line 23 def discover_tests tests = super tests.each_value do |test_info| test_info[:name].gsub!('Take screenshot', 'Take head screenshot') end tests end |
#in_game_tests_suite ⇒ Object
Return the in-game tests suite to which we forward the tests to be run
- Result
-
Symbol: In-game tests suite
14 15 16 |
# File 'lib/modsvaskr/tests_suites/npc_head.rb', line 14 def in_game_tests_suite :npcshead end |