Sha256: 8dbc5be1f17e7c2992ffad8c42adab30701668cef97e79fbfe87e637b1203233

Contents?: true

Size: 986 Bytes

Versions: 21

Compression:

Stored size: 986 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, 'Glob pattern for 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

21 entries across 21 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-2.5.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-2.4.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-2.3.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-2.2.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-2.1.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-2.0.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.39.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.38.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.38.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.37.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.36.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.35.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.34.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.33.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.32.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.32.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.31.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.30.0 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.29.1 exe/update-screenshot-paths
gitlab_quality-test_tooling-1.29.0 exe/update-screenshot-paths