summaryrefslogtreecommitdiff
path: root/spec/integration/dotnet
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-25 11:01:03 -0600
committermo khan <mo.khan@gmail.com>2020-05-26 19:33:44 -0600
commit80fa34dd2bd72af88efcb85844302d04450a0e1e (patch)
tree2a5ba8dfc9bdb61c58633373be122ae2f83df1e7 /spec/integration/dotnet
parentbff873a938de126d2b79e799df325f3d5c31295b (diff)
Scan Conan projects
* Scan the conan examples project * Split licenses by comma * Add integration test job for c projects * Add package_manager, version and path to v2.1 report * Detect collisions between names from different package managers * Add CHANGELOG entry * Update README to indicate Conan support * Print timestamps in install script
Diffstat (limited to 'spec/integration/dotnet')
-rw-r--r--spec/integration/dotnet/examples_spec.rb2
-rw-r--r--spec/integration/dotnet/nuget_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/integration/dotnet/examples_spec.rb b/spec/integration/dotnet/examples_spec.rb
index 13f4712..8b325b7 100644
--- a/spec/integration/dotnet/examples_spec.rb
+++ b/spec/integration/dotnet/examples_spec.rb
@@ -5,7 +5,7 @@ RSpec.describe ".NET Core" do
runner.clone('https://github.com/microsoft/RockPaperScissorsLizardSpock.git')
report = runner.scan(env: { 'LICENSE_FINDER_CLI_OPTS' => '--recursive' })
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses].count).not_to be_zero
expect(report[:dependencies].count).not_to be_zero
end
diff --git a/spec/integration/dotnet/nuget_spec.rb b/spec/integration/dotnet/nuget_spec.rb
index 6eeb261..c97c352 100644
--- a/spec/integration/dotnet/nuget_spec.rb
+++ b/spec/integration/dotnet/nuget_spec.rb
@@ -26,7 +26,7 @@ RSpec.describe "nuget" do
runner.add_file('packages.config', packages_config)
report = runner.scan
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses].count).not_to be_zero
expect(report.dependency_names).to match_array([
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform",
@@ -67,7 +67,7 @@ RSpec.describe "nuget" do
runner.add_file('winforms/packages.config', winforms_packages)
report = runner.scan(env: { 'LICENSE_FINDER_CLI_OPTS' => '--recursive' })
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report.licenses_for('jive')).to match_array(['MIT'])
expect(report.licenses_for('MvcMailer')).to match_array(['MIT'])
end
@@ -87,7 +87,7 @@ RSpec.describe "nuget" do
runner.add_file('packages.config', packages)
report = runner.scan
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses].count).not_to be_zero
expect(report[:licenses].map { |x| x[:id] }.uniq).to match_array(['LGPL-2.1', 'Apache-2.0', 'BSD-3-Clause'])
expect(report.dependency_names).to match_array([