summaryrefslogtreecommitdiff
path: root/spec/integration/cli
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-15 17:25:12 -0600
committermo khan <mo.khan@gmail.com>2020-05-15 17:25:12 -0600
commitdc2f3b6ad8c3123f58f97ca221e3e2e4f7a1d3a7 (patch)
treeda274ebd13904346c725ca6c76405e3a25c59e2c /spec/integration/cli
parent34ec279796ac16146f04f9c3a901a6409640dc7c (diff)
Shutdown threadpool after scan
Diffstat (limited to 'spec/integration/cli')
-rw-r--r--spec/integration/cli/scan_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb
index 3bc0890..a574cda 100644
--- a/spec/integration/cli/scan_spec.rb
+++ b/spec/integration/cli/scan_spec.rb
@@ -28,7 +28,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
it 'executes `spandx scan Gemfile.lock`' do
gemfile_lock = fixture_file('bundler/Gemfile.lock')
- output = `spandx scan #{gemfile_lock} --format=json`
+ output = `spandx scan #{gemfile_lock} --format=json --no-show-progress`
expected_output = <<~OUT
{
"version": "1.0",
@@ -48,7 +48,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
it 'executes `spandx scan gems.lock' do
gemfile_lock = fixture_file('bundler/gems.lock')
- output = `spandx scan #{gemfile_lock} --format=json`
+ output = `spandx scan #{gemfile_lock} --format=json --no-show-progress`
expected_output = <<~OUT
{
"version": "1.0",
@@ -68,7 +68,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
it 'executes `spandx scan Pipfile.lock`' do
lockfile = fixture_file('pip/Pipfile.lock')
- output = `spandx scan #{lockfile} --format=json`
+ output = `spandx scan #{lockfile} --format=json --no-show-progress`
expected_output = <<~OUT
{
"version": "1.0",
@@ -87,13 +87,14 @@ RSpec.describe '`spandx scan` command', type: :cli do
end
xit 'executes `spandx scan yarnfile.lock`' do
- output = `spandx scan #{fixture_file('js/yarn.lock')}`
+ lockfile = fixture_file('js/yarn.lock')
+ output = `spandx scan #{lockfile} --no-show-progress`
expect(output).to eq(fixture_file_content('js/yarn.lock.expected'))
end
it 'executes `spandx scan composer.lock`' do
lockfile = fixture_file('composer/composer.lock')
- output = `spandx scan #{lockfile}`
+ output = `spandx scan #{lockfile} --no-show-progress`
expect(output).to eq(fixture_file_content('composer/composer.lock.expected'))
end