Sha256: 21fde97ab30e6a3b4ba63bf6e5a2c520ce4c884c8c1543d1324c032b810e40aa

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

# encoding: ascii-8bit

# Copyright 2022 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# This program may also be used under the terms of a commercial or
# enterprise edition license of COSMOS if purchased from the
# copyright holder

require 'cosmos/script/suite'
require 'cosmos/script/exceptions'

module Cosmos
  # @deprecated Use SkipScript
  class SkipTestCase < SkipScript; end

  # @deprecated Use Suite
  class TestSuite < Suite
    alias :tests :scripts
    alias :add_test :add_group
    alias :add_test_case :add_script
    alias :add_test_setup :add_group_setup
    alias :add_test_teardown :add_group_teardown
    alias :run_test :run_group
    alias :run_test_case :run_script
    alias :get_num_test :get_num_scripts
    alias :run_test_setup :run_group_setup
    alias :run_test_teardown :run_group_teardown
  end

  # @deprecated Use Group
  class Test < Group
    alias :run_test_case :run_script

    class << self
      alias :test_cases :scripts
      alias :get_num_tests :get_num_scripts
      alias :current_test_suite :current_suite
      alias :current_test_group :current_group
      alias :current_test :current_group
      alias :current_test_case :current_script
    end
  end

  # @deprecated Use ScriptStatus
  class TestStatus < ScriptStatus; end

  # @deprecated Use ScriptResult
  class TestResult < ScriptResult
    alias :test_suite :suite
    alias :test_suite= :suite=
    alias :test :group
    alias :test= :group=
    alias :test_case :script
    alias :test_case= :script=
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cosmos-5.0.5 lib/cosmos/tools/test_runner/test.rb
cosmos-5.0.4 lib/cosmos/tools/test_runner/test.rb
cosmos-5.0.3 lib/cosmos/tools/test_runner/test.rb
cosmos-5.0.2 lib/cosmos/tools/test_runner/test.rb
cosmos-5.0.2.pre.beta2 lib/cosmos/tools/test_runner/test.rb