Sha256: 2b866ad0065bb6657a274c5bad867b97730b933125d33c926f21c1c20d5cf6c1

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

require "capybara_typo3_browsertesting/version"
require "capybara_typo3_browsertesting/init_dependencies"

require "capybara_typo3_browsertesting/shared_test_header"
require "capybara_typo3_browsertesting/shared_test_google_analytics"
require "capybara_typo3_browsertesting/shared_test_backend"

module CapybaraTypo3Browsertesting
  class << self

    attr_accessor :google_analytics_code
    attr_accessor :typo3_major_version
    attr_accessor :typo3_backend_login, :typo3_backend_password
    attr_accessor :typo3_frontend_login, :typo3_frontend_password

    def configure
      yield self
    end
  end
end

module Minitest
  module TYPO3
    class Test < Minitest::Test
      include Capybara::DSL

      def initialize(name = nil)
        print "\nRunning test case: #{name} "
        @test_name = name
        super(name) unless name.nil?
      end

      def setup
      end

      def teardown
        unless passed?
          page.save_screenshot "test/tmp/testname-#{@test_name}-#{Time.now.strftime('%Y%m%d-%H%M%S')}.png", full: true
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara_typo3_browsertesting-0.1.3 lib/capybara_typo3_browsertesting.rb
capybara_typo3_browsertesting-0.1.2 lib/capybara_typo3_browsertesting.rb