Sha256: 88b87f486f7ff8def34dd6f775bcc52a41d60b062e32b2928913a6f6a447028d

Contents?: true

Size: 969 Bytes

Versions: 53

Compression:

Stored size: 969 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "optparse"

require_relative "../lib/gitlab_quality/test_tooling"

params = {}

options = OptionParser.new do |opts|
  opts.banner = "Usage: #{$PROGRAM_NAME} [options]"

  opts.on('-i', '--input-files INPUT_FILES', String, 'RSpec report files (JSON or JUnit XML)') do |input_files|
    params[:input_files] = input_files
  end

  opts.on_tail('-v', '--version', 'Show the version') do
    require_relative "../lib/gitlab_quality/test_tooling/version"
    puts "#{$PROGRAM_NAME} : #{GitlabQuality::TestTooling::VERSION}"
    exit
  end

  opts.on_tail('-h', '--help', 'Show the usage') do
    puts "Purpose: Update the path to screenshots to container's host from RSpec report files (JSON or JUnit XML)"
    puts opts
    exit
  end

  opts.parse(ARGV)
end

if params.any?
  GitlabQuality::TestTooling::Report::UpdateScreenshotPath.new(**params).invoke!
else
  puts options
  exit 1
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.24.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.23.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.22.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.21.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.21.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.20.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.20.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.19.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.19.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.18.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.17.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.15.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.14.2 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.14.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.14.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.13.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.12.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.11.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.10.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.10.0 exe/update-screenshot-paths