Project

General

Profile

Feature #9040

Feature #10237: Refactor and clean up the automated test suite

Encapsulate config.rb into TestSuiteConfig class

Added by anonym over 4 years ago. Updated about 3 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Test suite
Target version:
-
Start date:
03/09/2015
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

Similar to #9030, it's potentially problematic to define stuff in the global context except classes and modules. We could fix this pretty easily by implementing a TestSuiteConfig class that inherits from Hash, and does the YAML stuff in initialize and then do $config = TestSuiteConfig.new in the global context (which is fine). That wouldn't require any change to code using $config anywhere else.

We probably should move the constants into this class too, which would require e.g. TAILS_ISO to be changed to TestSuiteConfig.TAILS_ISO which actually looks like a good thing since it's easier to understand that the constant is part of the test suite's configuration.

History

#1 Updated by anonym about 4 years ago

  • Parent task set to #10237

#2 Updated by anonym about 4 years ago

  • Target version changed from Tails_1.7 to Tails_1.8

#3 Updated by intrigeri almost 4 years ago

  • Target version changed from Tails_1.8 to Tails_2.2

Postponing to after January, since times will be a bit crazy until then.

#4 Updated by anonym almost 4 years ago

  • Target version changed from Tails_2.2 to Tails_2.5

#5 Updated by intrigeri over 3 years ago

  • Target version changed from Tails_2.5 to Tails_2.7

#6 Updated by anonym about 3 years ago

  • Target version deleted (Tails_2.7)

Also available in: Atom PDF