Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (43 sloc) 2.435 kb
f7c228c6 » Matthew Kane Parker and Paul Meskers
2012-09-14 Rename rake license:action_items => license_finder
1 Feature: HTML Report
2 So that I can easily view a report outlining my application dependencies and licenses
3 As a non-technical application product owner
4 I want license finder to generate an easy-to-understand HTML report
5
6 Background:
7 Given I have an app with license finder
8
9 Scenario: Dependency details listed in HTML report
10 Given my application depends on a gem "mit_licensed_gem" with:
11 | license | summary | description | version | homepage | bundler_groups |
12 | MIT | mit is cool | seriously | 0.0.1 | http://mit_licensed_gem.github.com | test |
13 When I run "license_finder"
14 And I should see the "mit_licensed_gem" in the html with the following details:
15 | license | summary | description | name | bundler_groups |
16 | MIT | mit is cool | seriously | mit_licensed_gem v0.0.1 | test |
17 And the text "MIT" should link to "http://opensource.org/licenses/mit-license"
18 And the text "mit_licensed_gem" should link to "http://mit_licensed_gem.github.com"
19
20 Scenario: Approval status of dependencies indicated in HTML report
21 Given my app depends on a gem "gpl_licensed_gem" licensed with "GPL"
22 And my app depends on a gem "mit_licensed_gem" licensed with "MIT"
23 And I whitelist the "MIT" license
24 When I run "license_finder"
25 Then I should see the "gpl_licensed_gem" in the html flagged as "unapproved"
26 And I should see the "mit_licensed_gem" in the html flagged as "approved"
389597a7 » Ian Lesperance
2012-09-14 Added summary info to the top of the HTML report.
27
28 Scenario: Dependency summary
29 Given my app depends on a gem "gpl_licensed_gem" licensed with "GPL"
30 And my app depends on a gem "mit_licensed_gem" licensed with "MIT"
31 And I whitelist the following licenses: "MIT, other"
32 When I run "license_finder"
33 # rake, bundler, license_finder, my_app, gpl_licensed_gem, mit_licensed_gem
34 Then I should see "6 total" in the html
35 # gpl_licensed_gem
36 And I should see "1 unapproved" in the html
37 # gpl_licensed_gem
38 And I should see "1 GPL" in the html
58597a86 » Matthew Kane Parker and Paul Meskers
2012-09-14 show gem parents and children in html report
39
40 Scenario: Implicit dependencies list their parent dependencies
41 Given I have a rails app with license finder
42 When I run "license_finder"
43 Then I should see the "activerecord" in the html with the following details:
44 | parent |
45 | rails |
46 And I should see "rails" in the html with the following details:
47 | children |
48 | activerecord |
Something went wrong with that request. Please try again.