Sha256: cd89057e2d6356d41eae759bfcbe3383a33bb9556deed4ac1819ed5ec4e2c3a3

Contents?: true

Size: 1.26 KB

Versions: 12

Compression:

Stored size: 1.26 KB

Contents

require_relative '../../support/feature_helper'

describe 'Composite project' do
  # As a non-technical product owner
  # I want to run license finder on a composite project
  # So that I can easily review all licenses used by sub-projects

  let(:developer) { LicenseFinder::TestingDSL::User.new }

  specify 'shows dependencies for all active projects' do
    LicenseFinder::TestingDSL::CompositeProject.create
    developer.execute_command('license_finder report --recursive')
    expect(developer).to be_seeing('junit,4.11,Common Public License Version 1.0')
  end

  specify 'shows csv report columns in the right order' do
    LicenseFinder::TestingDSL::CompositeProject.create
    developer.execute_command('license_finder report --recursive --format csv --columns name version install_path licenses')
    expect(developer).to be_seeing('junit,4.11,,Common Public License Version 1.0')
  end

  specify 'shows install path column when scanning recursively' do
    project = LicenseFinder::TestingDSL::BundlerProject.create
    project.install
    developer.execute_command('license_finder report --recursive --format csv --columns name version install_path licenses')
    expect(developer).to be_seeing_something_like(/multi_xml,0.\d+.\d+,.*\/gems\/multi_xml-0.\d+.\d+,MIT/)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
license_finder-3.0.4 features/features/report/composite_spec.rb
license_finder-3.0.2 features/features/report/composite_spec.rb
license_finder-3.0.1 features/features/report/composite_spec.rb
license_finder-3.0.0 features/features/report/composite_spec.rb
license_finder-2.1.2 features/features/report/composite_spec.rb
license_finder-2.1.1 features/features/report/composite_spec.rb
license_finder-2.1.0 features/features/report/composite_spec.rb
license_finder-2.1.0.rc9 features/features/report/composite_spec.rb
license_finder-2.1.0.rc8 features/features/report/composite_spec.rb
license_finder-2.1.0.rc7 features/features/report/composite_spec.rb
license_finder-2.1.0.rc6 features/features/report/composite_spec.rb
license_finder-2.1.0.rc5 features/features/report/composite_spec.rb