summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-15 18:13:09 +0000
committermo khan <mo.khan@gmail.com>2020-01-15 18:13:09 +0000
commitf4f59927f87944a4d73be26416a7334521875f40 (patch)
treecc7a9e050188b569935a6865d2edb547db9d6214 /spec/integration
parente8ee4b029b6b76a40d54a28f4db4d9632b12c7e8 (diff)
parentad1003fb5fa0b775f1abb45022ccb4f2cb55f497 (diff)
Merge branch 'net-example' into 'master'
Add scan of .NET Core sample project See merge request gitlab-org/security-products/license-management!104
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/dotnet/examples_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/integration/dotnet/examples_spec.rb b/spec/integration/dotnet/examples_spec.rb
new file mode 100644
index 0000000..43caea0
--- /dev/null
+++ b/spec/integration/dotnet/examples_spec.rb
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+RSpec.describe ".NET Core" do
+ it 'scans https://github.com/microsoft/RockPaperScissorsLizardSpock.git' do
+ runner.clone('https://github.com/microsoft/RockPaperScissorsLizardSpock.git')
+ report = runner.scan(env: { 'LICENSE_FINDER_CLI_OPTS' => '--recursive' })
+
+ expect(report).not_to be_empty
+ expect(report[:licenses].count).not_to be_zero
+ expect(report[:dependencies].count).not_to be_zero
+ end
+end
+