danger-junit 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,225 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="rspec" tests="198" failures="1" errors="0" time="5.011841" timestamp="2016-07-29T22:35:59-04:00">
3
+ <!-- Randomized with seed 58338 -->
4
+ <properties/>
5
+ <testcase classname="spec.lib.danger.ci_sources.buildkite_spec" name="Danger::CISource::Buildkite validates when buildkite all env vars is found" file="./spec/lib/danger/ci_sources/buildkite_spec.rb" time="0.000615"/>
6
+ <testcase classname="spec.lib.danger.ci_sources.buildkite_spec" name="Danger::CISource::Buildkite doesnt validate when buildkite is not found" file="./spec/lib/danger/ci_sources/buildkite_spec.rb" time="0.000101"/>
7
+ <testcase classname="spec.lib.danger.ci_sources.buildkite_spec" name="Danger::CISource::Buildkite gets out a repo slug from a git+ssh repo and pull request number" file="./spec/lib/danger/ci_sources/buildkite_spec.rb" time="0.000434"/>
8
+ <testcase classname="spec.lib.danger.ci_sources.buildkite_spec" name="Danger::CISource::Buildkite gets out a repo slug from a https repo and pull request number" file="./spec/lib/danger/ci_sources/buildkite_spec.rb" time="0.000092"/>
9
+ <testcase classname="spec.lib.danger.ci_sources.buildkite_spec" name="Danger::CISource::Buildkite doesn't continue when the build is not a pull request" file="./spec/lib/danger/ci_sources/buildkite_spec.rb" time="0.000093"/>
10
+ <testcase classname="spec.lib.danger.ci_sources.circle_api_spec" name="Danger::CircleAPI has a nil token as default" file="./spec/lib/danger/ci_sources/circle_api_spec.rb" time="0.000777"/>
11
+ <testcase classname="spec.lib.danger.ci_sources.circle_api_spec" name="Danger::CircleAPI sets the token on initialize" file="./spec/lib/danger/ci_sources/circle_api_spec.rb" time="0.000556"/>
12
+ <testcase classname="spec.lib.danger.ci_sources.circle_api_spec" name="Danger::CircleAPI creates a client with the correct base url" file="./spec/lib/danger/ci_sources/circle_api_spec.rb" time="0.001173"/>
13
+ <testcase classname="spec.lib.danger.ci_sources.circle_api_spec" name="Danger::CircleAPI fetches the build info without token" file="./spec/lib/danger/ci_sources/circle_api_spec.rb" time="0.008119"/>
14
+ <testcase classname="spec.lib.danger.ci_sources.circle_api_spec" name="Danger::CircleAPI fetches the build info with token" file="./spec/lib/danger/ci_sources/circle_api_spec.rb" time="0.001708"/>
15
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI validates when circle all env vars are set" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.012097">
16
+ <failure message="&#10;expected true&#10; got false&#10;" type="RSpec::Expectations::ExpectationNotMetError">
17
+ <![CDATA[
18
+ expected true
19
+ got false
20
+
21
+ ./spec/lib/danger/ci_sources/circle_spec.rb:9:in `block (2 levels) in <top (required)>']]>
22
+ </failure>
23
+ </testcase>
24
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI validates when circle env var is found and it has a bad PR url" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.000123"/>
25
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI doesnt get a PR id when it has a bad PR url" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.009942"/>
26
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI does validate when circle env var is found and it has no PR url" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.000178"/>
27
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI doesnt validate when circle ci is not found" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.000171"/>
28
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI gets out a repo slug and pull request number" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.009745"/>
29
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI gets out a repo slug, pull request number and commit refs when PR url is not found" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.010840"/>
30
+ <testcase classname="spec.lib.danger.ci_sources.circle_spec" name="Danger::CISource::CircleCI uses Circle CI API token if available" file="./spec/lib/danger/ci_sources/circle_spec.rb" time="0.010527"/>
31
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone validates when DRONE variable is set" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.000158"/>
32
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone does not validate when DRONE is not set" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.000130"/>
33
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone does not validate when DRONE_PULL_REQUEST is set to non int value" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.000095"/>
34
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone does not validate when DRONE_PULL_REQUEST is set to non positive int value" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.000095"/>
35
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone gets the pull request ID" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.009901"/>
36
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone gets the repo address" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.009159"/>
37
+ <testcase classname="spec.lib.danger.ci_sources.drone_spec" name="Danger::CISource::Drone gets out a repo slug and pull request number" file="./spec/lib/danger/ci_sources/drone_spec.rb" time="0.009046"/>
38
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo Return Types #modified_files returns a FileList object" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.119790"/>
39
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo Return Types #added_files returns a FileList object" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.119031"/>
40
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo Return Types #deleted_files returns a FileList object" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.119663"/>
41
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo with files handles adding a new file to a git repo" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.139138"/>
42
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo with files handles file deletions as expected" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.141349"/>
43
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo with files handles modified as expected" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.123373"/>
44
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo lines of code handles code insertions as expected" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.139651"/>
45
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo lines of code handles code deletions as expected" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.121049"/>
46
+ <testcase classname="spec.lib.danger.ci_sources.git_spec" name="Danger::GitRepo lines of code #commits returns the commits" file="./spec/lib/danger/ci_sources/git_spec.rb" time="0.124938"/>
47
+ <testcase classname="spec.lib.danger.ci_sources.jenkins_spec" name="Danger::CISource::Jenkins validates when jenkins env var is found" file="./spec/lib/danger/ci_sources/jenkins_spec.rb" time="0.000158"/>
48
+ <testcase classname="spec.lib.danger.ci_sources.jenkins_spec" name="Danger::CISource::Jenkins doesnt validate when jenkins is not found" file="./spec/lib/danger/ci_sources/jenkins_spec.rb" time="0.000108"/>
49
+ <testcase classname="spec.lib.danger.ci_sources.jenkins_spec" name="Danger::CISource::Jenkins gets out a repo slug from a git+ssh repo and pull request number" file="./spec/lib/danger/ci_sources/jenkins_spec.rb" time="0.000181"/>
50
+ <testcase classname="spec.lib.danger.ci_sources.jenkins_spec" name="Danger::CISource::Jenkins gets out a repo slug from a https repo and pull request number" file="./spec/lib/danger/ci_sources/jenkins_spec.rb" time="0.000108"/>
51
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo validates when run by danger local" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.000130"/>
52
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo doesnt validate when the local git flag is missing" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.000092"/>
53
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo gets the pull request ID" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.157652"/>
54
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos gets the repo address when it uses https" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.183226"/>
55
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos gets the repo address when it uses git@" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.185604"/>
56
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos gets the repo address when it contains .git" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.166616"/>
57
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos gets the repo address when it starts with git://" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.162419"/>
58
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos gets the repo address when it starts with git://git@" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.170272"/>
59
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo github repos does not set a repo_slug if the repo has a non-gh remote" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.175726"/>
60
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo enterprise github repos does set a repo_slug if provided with a github_host" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.179338"/>
61
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo enterprise github repos does not set a repo_slug if provided with a github_host that is different from the remote" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.173431"/>
62
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo Support looking for a specific PR handles finding the resulting PR" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.258028"/>
63
+ <testcase classname="spec.lib.danger.ci_sources.local_git_repo_spec" name="Danger::CISource::LocalGitRepo Support looking for a specific PR handles not finding the resulting PR" file="./spec/lib/danger/ci_sources/local_git_repo_spec.rb" time="0.260599"/>
64
+ <testcase classname="spec.lib.danger.ci_sources.semaphore_spec" name="Danger::CISource::Semaphore validates when all semaphore variables are set" file="./spec/lib/danger/ci_sources/semaphore_spec.rb" time="0.000167"/>
65
+ <testcase classname="spec.lib.danger.ci_sources.semaphore_spec" name="Danger::CISource::Semaphore doesnt validate when not semaphore" file="./spec/lib/danger/ci_sources/semaphore_spec.rb" time="0.000105"/>
66
+ <testcase classname="spec.lib.danger.ci_sources.semaphore_spec" name="Danger::CISource::Semaphore gets the pull request ID" file="./spec/lib/danger/ci_sources/semaphore_spec.rb" time="0.011314"/>
67
+ <testcase classname="spec.lib.danger.ci_sources.semaphore_spec" name="Danger::CISource::Semaphore gets the repo address" file="./spec/lib/danger/ci_sources/semaphore_spec.rb" time="0.018653"/>
68
+ <testcase classname="spec.lib.danger.ci_sources.semaphore_spec" name="Danger::CISource::Semaphore gets out a repo slug and pull request number" file="./spec/lib/danger/ci_sources/semaphore_spec.rb" time="0.009765"/>
69
+ <testcase classname="spec.lib.danger.ci_sources.surf_spec" name="Danger::CISource::Surf validates when all Surf environment vars are set" file="./spec/lib/danger/ci_sources/surf_spec.rb" time="0.000321"/>
70
+ <testcase classname="spec.lib.danger.ci_sources.surf_spec" name="Danger::CISource::Surf doesnt validate when Surf aint around" file="./spec/lib/danger/ci_sources/surf_spec.rb" time="0.000119"/>
71
+ <testcase classname="spec.lib.danger.ci_sources.surf_spec" name="Danger::CISource::Surf gets the pull request ID" file="./spec/lib/danger/ci_sources/surf_spec.rb" time="0.000105"/>
72
+ <testcase classname="spec.lib.danger.ci_sources.surf_spec" name="Danger::CISource::Surf gets the repo address" file="./spec/lib/danger/ci_sources/surf_spec.rb" time="0.000091"/>
73
+ <testcase classname="spec.lib.danger.ci_sources.surf_spec" name="Danger::CISource::Surf gets out a repo slug and pull request number" file="./spec/lib/danger/ci_sources/surf_spec.rb" time="0.000088"/>
74
+ <testcase classname="spec.lib.danger.ci_sources.teamcity_spec" name="Danger::CISource::TeamCity detects TeamCity" file="./spec/lib/danger/ci_sources/teamcity_spec.rb" time="0.000095"/>
75
+ <testcase classname="spec.lib.danger.ci_sources.teamcity_spec" name="Danger::CISource::TeamCity gets out a repo slug" file="./spec/lib/danger/ci_sources/teamcity_spec.rb" time="0.000090"/>
76
+ <testcase classname="spec.lib.danger.ci_sources.teamcity_spec" name="Danger::CISource::TeamCity gets out a pull request id" file="./spec/lib/danger/ci_sources/teamcity_spec.rb" time="0.000079"/>
77
+ <testcase classname="spec.lib.danger.ci_sources.teamcity_spec" name="Danger::CISource::TeamCity gets out a repo url" file="./spec/lib/danger/ci_sources/teamcity_spec.rb" time="0.000085"/>
78
+ <testcase classname="spec.lib.danger.ci_sources.travis_spec" name="Danger::CISource::Travis validates when all Travis environment vars are set and Josh K says so" file="./spec/lib/danger/ci_sources/travis_spec.rb" time="0.000084"/>
79
+ <testcase classname="spec.lib.danger.ci_sources.travis_spec" name="Danger::CISource::Travis doesnt validate when Josh K aint around" file="./spec/lib/danger/ci_sources/travis_spec.rb" time="0.000231"/>
80
+ <testcase classname="spec.lib.danger.ci_sources.travis_spec" name="Danger::CISource::Travis gets the pull request ID" file="./spec/lib/danger/ci_sources/travis_spec.rb" time="0.009766"/>
81
+ <testcase classname="spec.lib.danger.ci_sources.travis_spec" name="Danger::CISource::Travis gets the repo address" file="./spec/lib/danger/ci_sources/travis_spec.rb" time="0.009772"/>
82
+ <testcase classname="spec.lib.danger.ci_sources.travis_spec" name="Danger::CISource::Travis gets out a repo slug and pull request number" file="./spec/lib/danger/ci_sources/travis_spec.rb" time="0.011389"/>
83
+ <testcase classname="spec.lib.danger.ci_sources.xcode_server_spec" name="Danger::CISource::XcodeServer validates when Xcode Server has XCS_BOT_NAME env var" file="./spec/lib/danger/ci_sources/xcode_server_spec.rb" time="0.000169"/>
84
+ <testcase classname="spec.lib.danger.ci_sources.xcode_server_spec" name="Danger::CISource::XcodeServer doesnt validate when Xcode Server does not have XCS_BOT_NAME env var" file="./spec/lib/danger/ci_sources/xcode_server_spec.rb" time="0.000129"/>
85
+ <testcase classname="spec.lib.danger.ci_sources.xcode_server_spec" name="Danger::CISource::XcodeServer gets out a repo slug and a pull request number from a bot name" file="./spec/lib/danger/ci_sources/xcode_server_spec.rb" time="0.009770"/>
86
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will default to a 300 second cache expiry" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.000468"/>
87
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will allow setting a custom cache expiry" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.000137"/>
88
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will open a previous file by default" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.001958"/>
89
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will delete a previous file if told to" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.000765"/>
90
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will honor the TTL when a read attempt is made" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.000699"/>
91
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will delete a key" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.000645"/>
92
+ <testcase classname="spec.lib.danger.commands.local_helpers.http_cache_spec" name="Danger::HTTPCache will write a key and timestamp" file="./spec/lib/danger/commands/local_helpers/http_cache_spec.rb" time="0.001539"/>
93
+ <testcase classname="spec.lib.danger.commands.plugin_lint_spec" name="Danger::PluginLint runs the command" file="./spec/lib/danger/commands/plugin_lint_spec.rb" time="0.118521"/>
94
+ <testcase classname="spec.lib.danger.commands.runner_spec" name="Danger::Runner runtime errors when no Dangerfile found" file="./spec/lib/danger/commands/runner_spec.rb" time="0.000022">
95
+ <skipped/>
96
+ </testcase>
97
+ <testcase classname="spec.lib.danger.commands.runner_spec" name="Danger::Runner Calls Executor works without parameters" file="./spec/lib/danger/commands/runner_spec.rb" time="0.013847"/>
98
+ <testcase classname="spec.lib.danger.commands.runner_spec" name="Danger::Runner full run gets through the whole command" file="./spec/lib/danger/commands/runner_spec.rb" time="0.000017">
99
+ <skipped/>
100
+ </testcase>
101
+ <testcase classname="spec.lib.danger.commands.runner_spec" name="Danger::Runner full run handles an example dangerfile well" file="./spec/lib/danger/commands/runner_spec.rb" time="0.000009">
102
+ <skipped/>
103
+ </testcase>
104
+ <testcase classname="spec.lib.danger.commands.runner_spec" name="Danger::Runner full run has the correct version" file="./spec/lib/danger/commands/runner_spec.rb" time="0.000008">
105
+ <skipped/>
106
+ </testcase>
107
+ <testcase classname="spec.lib.danger.core_ext.file_list_spec" name="Danger::FileList#include? supports exact matches" file="./spec/lib/danger/core_ext/file_list_spec.rb" time="0.000166"/>
108
+ <testcase classname="spec.lib.danger.core_ext.file_list_spec" name="Danger::FileList#include? supports * for wildcards" file="./spec/lib/danger/core_ext/file_list_spec.rb" time="0.000118"/>
109
+ <testcase classname="spec.lib.danger.core_ext.file_list_spec" name="Danger::FileList#include? supports ? for single chars" file="./spec/lib/danger/core_ext/file_list_spec.rb" time="0.000167"/>
110
+ <testcase classname="spec.lib.danger.core_ext.file_list_spec" name="Danger::FileList#include? returns false if nothing was found" file="./spec/lib/danger/core_ext/file_list_spec.rb" time="0.000157"/>
111
+ <testcase classname="spec.lib.danger.core_ext.string_spec" name="String#danger_class converts properly" file="./spec/lib/danger/core_ext/string_spec.rb" time="0.000173"/>
112
+ <testcase classname="spec.lib.danger.core_ext.string_spec" name="String#danger_pluralize returns '0 errors' when count = 0" file="./spec/lib/danger/core_ext/string_spec.rb" time="0.000074"/>
113
+ <testcase classname="spec.lib.danger.core_ext.string_spec" name="String#danger_pluralize returns '1 error' when count = 1" file="./spec/lib/danger/core_ext/string_spec.rb" time="0.000097"/>
114
+ <testcase classname="spec.lib.danger.core_ext.string_spec" name="String#danger_pluralize returns '2 errors' when count = 2" file="./spec/lib/danger/core_ext/string_spec.rb" time="0.000064"/>
115
+ <testcase classname="spec.lib.danger.core_ext.string_spec" name="String#danger_underscore converts properly" file="./spec/lib/danger/core_ext/string_spec.rb" time="0.000136"/>
116
+ <testcase classname="spec.lib.danger.danger_core.danger_spec" name="Danger has a version number" file="./spec/lib/danger/danger_core/danger_spec.rb" time="0.000077"/>
117
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile keeps track of the original Dangerfile" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.026327"/>
118
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile runs the ruby code inside the Dangerfile" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.023698"/>
119
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile raises elegantly with bad ruby code inside the Dangerfile" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.019950"/>
120
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile respects ignored violations" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.019849"/>
121
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile#print_results Prints out 3 lists" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.020004"/>
122
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile verbose outputs metadata when verbose" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.020254"/>
123
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile verbose does not print metadata by default" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.019679"/>
124
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile initializing plugins should add a plugin to the @plugins array" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.023388"/>
125
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile initializing plugins should add an instance variable to the dangerfile" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.020668"/>
126
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile printing verbose metadata exposes core attributes" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.018841"/>
127
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile printing verbose metadata exposes no external attributes by default" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.019520"/>
128
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile printing verbose metadata exposes plugin external attributes by default" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.019462"/>
129
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile printing verbose metadata creates a table from a selection of core DSL attributes info" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.021840"/>
130
+ <testcase classname="spec.lib.danger.danger_core.dangerfile_spec" name="Danger::Dangerfile printing verbose metadata creates a table from a selection of external plugins DSL attributes info" file="./spec/lib/danger/danger_core/dangerfile_spec.rb" time="0.022742"/>
131
+ <testcase classname="spec.lib.danger.danger_core.environment_manager_spec" name="Danger::EnvironmentManager raises without enough info in the ENV" file="./spec/lib/danger/danger_core/environment_manager_spec.rb" time="0.000332"/>
132
+ <testcase classname="spec.lib.danger.danger_core.environment_manager_spec" name="Danger::EnvironmentManager stores travis in the source" file="./spec/lib/danger/danger_core/environment_manager_spec.rb" time="0.019040"/>
133
+ <testcase classname="spec.lib.danger.danger_core.environment_manager_spec" name="Danger::EnvironmentManager stores circle in the source" file="./spec/lib/danger/danger_core/environment_manager_spec.rb" time="0.019483"/>
134
+ <testcase classname="spec.lib.danger.danger_core.environment_manager_spec" name="Danger::EnvironmentManager creates a GitHub attr" file="./spec/lib/danger/danger_core/environment_manager_spec.rb" time="0.018854"/>
135
+ <testcase classname="spec.lib.danger.danger_core.environment_manager_spec" name="Danger::EnvironmentManager skips push runs and only runs for pull requests" file="./spec/lib/danger/danger_core/environment_manager_spec.rb" time="0.009527"/>
136
+ <testcase classname="spec.lib.danger.import_spec" name="Danger::Dangerfile::DSL#import #import_local supports exact paths" file="./spec/lib/danger/import_spec.rb" time="0.019450"/>
137
+ <testcase classname="spec.lib.danger.import_spec" name="Danger::Dangerfile::DSL#import #import_local supports file globbing" file="./spec/lib/danger/import_spec.rb" time="0.019218"/>
138
+ <testcase classname="spec.lib.danger.import_spec" name="Danger::Dangerfile::DSL#import #import_local raises an error when calling a plugin that's not a subclass of Plugin" file="./spec/lib/danger/import_spec.rb" time="0.000016">
139
+ <skipped/>
140
+ </testcase>
141
+ <testcase classname="spec.lib.danger.import_spec" name="Danger::Dangerfile::DSL#import #import_url downloads a remote .rb file" file="./spec/lib/danger/import_spec.rb" time="0.035795"/>
142
+ <testcase classname="spec.lib.danger.import_spec" name="Danger::Dangerfile::DSL#import #import_url rejects unencrypted plugins" file="./spec/lib/danger/import_spec.rb" time="0.019916"/>
143
+ <testcase classname="spec.lib.danger.plugin_support.plugin_linter_spec" name="Danger::PluginParser creates a set of errors for fixtured plugins" file="./spec/lib/danger/plugin_support/plugin_linter_spec.rb" time="0.012638"/>
144
+ <testcase classname="spec.lib.danger.plugin_support.plugin_linter_spec" name="Danger::PluginParser creates a set of warnings for fixtured plugins" file="./spec/lib/danger/plugin_support/plugin_linter_spec.rb" time="0.007542"/>
145
+ <testcase classname="spec.lib.danger.plugin_support.plugin_linter_spec" name="Danger::PluginParser fails when there are errors" file="./spec/lib/danger/plugin_support/plugin_linter_spec.rb" time="0.000148"/>
146
+ <testcase classname="spec.lib.danger.plugin_support.plugin_linter_spec" name="Danger::PluginParser handles outputting a warning" file="./spec/lib/danger/plugin_support/plugin_linter_spec.rb" time="0.000643"/>
147
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser includes an example plugin" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.005550"/>
148
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser finds classes from inside the file" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.000521"/>
149
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser skips non-subclasses of Danger::Plugin" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.000698"/>
150
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser find subclasses of Danger::Plugin" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.005559"/>
151
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser outputs JSON for badly documented subclasses of Danger::Plugin" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.002823"/>
152
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser outputs JSON for well documented subclasses of Danger::Plugin" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.002275"/>
153
+ <testcase classname="spec.lib.danger.plugin_support.plugin_parser_spec" name="Danger::PluginParser creates method descriptions that make sense" file="./spec/lib/danger/plugin_support/plugin_parser_spec.rb" time="0.002356"/>
154
+ <testcase classname="spec.lib.danger.plugin_support.plugin_spec" name="Danger::Plugin creates an instance name based on the class name" file="./spec/lib/danger/plugin_support/plugin_spec.rb" time="0.000135"/>
155
+ <testcase classname="spec.lib.danger.plugin_support.plugin_spec" name="Danger::Plugin should forward unknown method calls to the dangerfile" file="./spec/lib/danger/plugin_support/plugin_spec.rb" time="0.000131"/>
156
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin fails init if the dangerfile's request source is not a GitRepo" file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019272"/>
157
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets added_files " file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019123"/>
158
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets deleted_files " file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019534"/>
159
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets modified_files " file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019308"/>
160
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets lines_of_code" file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019471"/>
161
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets deletions" file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019162"/>
162
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets insertions" file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019583"/>
163
+ <testcase classname="spec.lib.danger.plugins.dangerfile_git_plugin_spec" name="Danger::DangerfileGitPlugin dsl gets commits" file="./spec/lib/danger/plugins/dangerfile_git_plugin_spec.rb" time="0.019610"/>
164
+ <testcase classname="spec.lib.danger.plugins.dangerfile_github_plugin_spec" name="Danger::DangerfileGitHubPlugin dsl html_link works with a single path" file="./spec/lib/danger/plugins/dangerfile_github_plugin_spec.rb" time="0.020039"/>
165
+ <testcase classname="spec.lib.danger.plugins.dangerfile_github_plugin_spec" name="Danger::DangerfileGitHubPlugin dsl html_link works with 2 paths" file="./spec/lib/danger/plugins/dangerfile_github_plugin_spec.rb" time="0.020277"/>
166
+ <testcase classname="spec.lib.danger.plugins.dangerfile_github_plugin_spec" name="Danger::DangerfileGitHubPlugin dsl html_link works with 3+ paths" file="./spec/lib/danger/plugins/dangerfile_github_plugin_spec.rb" time="0.021214"/>
167
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub the github host sets a default GitHub host" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.010746"/>
168
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub the github host allows the GitHub host to be overridden" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011149"/>
169
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub the github host allows the GitHub API host to be overridden" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.010688"/>
170
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response sets its pr_json" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012208"/>
171
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response sets its issue_json" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011183"/>
172
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response sets the ignored violations" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012001"/>
173
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #organisation valid value available" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011404"/>
174
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #organisation no valid value available doesn't crash" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011446"/>
175
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #fetch_repository works with valid data" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011866"/>
176
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #fetch_repository returns nil for no response" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011571"/>
177
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #fetch_danger_repo tries both 'danger' and 'Danger' as repo, 'Danger' first" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012379"/>
178
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #fetch_danger_repo tries both 'danger' and 'Danger' as repo, 'danger' first" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012456"/>
179
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #danger_repo? returns true if the repo's name is danger" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013061"/>
180
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #danger_repo? returns false if the repo's name is danger (it's eigen)" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014915"/>
181
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #file_url returns a valid URL with the minimum parameters" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014187"/>
182
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #file_url returns a valid URL with more parameters" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014144"/>
183
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response DSL Attributes sets the right commit sha" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.000020">
184
+ <skipped/>
185
+ </testcase>
186
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response DSL Attributes sets the right labels" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.000145">
187
+ <skipped/>
188
+ </testcase>
189
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment no warnings, no errors, no messages" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.017438"/>
190
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment supports markdown code below the summary table" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.016031"/>
191
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment supports markdown only without a table" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.017957"/>
192
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment some warnings, no errors" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014481"/>
193
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment some warnings with markdown, no errors" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014330"/>
194
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment a multiline warning with markdown, no errors" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014445"/>
195
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment some warnings, some errors" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013936"/>
196
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment deduplicates previous violations" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013562"/>
197
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment crosses resolved violations and changes the title" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.022098"/>
198
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment uncrosses violations that were on the list and happened again" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.015937"/>
199
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment counts only unresolved violations on the title" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.016114"/>
200
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment needs to include generated_by_danger" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014817"/>
201
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment handles a custom danger_id" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.015104"/>
202
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment sets data-sticky to true when a violation is sticky" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014846"/>
203
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response #generate_comment sets data-sticky to false when a violation is not sticky" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.015626"/>
204
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response status message Shows a success message when no errors/warnings" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.015058"/>
205
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response status message Shows an error messages when there are errors" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014958"/>
206
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response status message Shows an error message when errors and warnings" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012695"/>
207
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response status message Deals with singualars in messages when errors and warnings" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013660"/>
208
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response commit status update fails when no head commit is set" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013724"/>
209
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation creates an issue if no danger comments exist" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.017320"/>
210
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation updates the issue if no danger comments exist" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.016393"/>
211
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation updates the issue if no danger comments exist and a custom danger_id is provided" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.017288"/>
212
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation deletes existing issues if danger doesnt need to say anything" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.015273"/>
213
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation deletes existing issues if danger doesnt need to say anything and a custom danger_id is provided" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013320"/>
214
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response issue creation updates the issue if danger doesnt need to say anything but there are sticky violations" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.016709"/>
215
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing detects the warning kind" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.014679"/>
216
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing detects the error kind" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.013618"/>
217
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing detects the warning kind" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012670"/>
218
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing parses a comment with error" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012958"/>
219
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing parses a comment with error and warnings" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.012461"/>
220
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing ignores non-sticky violations when parsing a comment" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011339"/>
221
+ <testcase classname="spec.lib.danger.request_sources.github_spec" name="Danger::RequestSources::GitHub valid server response comment parsing parses a comment with error and warnings removing strike tag" file="./spec/lib/danger/request_sources/github_spec.rb" time="0.011789"/>
222
+ <testcase classname="spec.lib.danger.request_sources.request_source_spec" name="Danger::RequestSources::RequestSource the base request source validates when passed a corresponding repository" file="./spec/lib/danger/request_sources/request_source_spec.rb" time="0.010502"/>
223
+ <testcase classname="spec.lib.danger.request_sources.request_source_spec" name="Danger::RequestSources::RequestSource the base request source validates when passed a corresponding repository with custom host" file="./spec/lib/danger/request_sources/request_source_spec.rb" time="0.010470"/>
224
+ <testcase classname="spec.lib.danger.request_sources.request_source_spec" name="Danger::RequestSources::RequestSource the base request source doesn't validate when passed a wrong repository" file="./spec/lib/danger/request_sources/request_source_spec.rb" time="0.010371"/>
225
+ </testsuite>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="errors happened" tests="1" time="156.705843557" failures="0" errors="1" skipped="0">
3
+ <testcase name="tried to do something and exception happened" time="155.161685544">
4
+ <failure type="Selenium::WebDriver::Error::TimeOutError" message="timed out after 120 seconds">
5
+ timed out after 120 seconds (Selenium::WebDriver::Error::TimeOutError)
6
+ Selenium::WebDriver::Error::TimeOutError:
7
+ timed out after 120 seconds
8
+ ./tests/spec/support/page_objects/base.rb:11:in `wait_until'
9
+ ./tests/spec/support/page_objects/data_table.rb:26:in `wait_for_table_to_load'
10
+ ./tests/spec/support/page_objects/my_table.rb:18:in `has_rows?'
11
+ ./tests/spec/support/page_objects/details_view.rb:200:in `delete_all_items'
12
+ ./tests/spec/my_feature/create_and_delete_items.rb:36:in `block (4 levels) in &lt;top (required)&gt;'</failure>
13
+ </testcase>
14
+ <system-out>
15
+ </system-out>
16
+ <system-err>
17
+ </system-err>
18
+ </testsuite>
@@ -0,0 +1,62 @@
1
+ require File.expand_path('../spec_helper', __FILE__)
2
+
3
+ #
4
+ module Danger
5
+ describe Danger::DangerJunit do
6
+ it 'should be a plugin' do
7
+ expect(Danger::DangerJunit.new(nil)).to be_a Danger::Plugin
8
+ end
9
+
10
+ describe 'with Dangerfile' do
11
+ before do
12
+ @dangerfile = testing_dangerfile
13
+ @junit = @dangerfile.junit
14
+ end
15
+
16
+ it 'gets the right results for the eigen failure' do
17
+ @junit.parse 'spec/fixtures/eigen_fail.xml'
18
+
19
+ expect(@junit.failures.count).to eq 2
20
+ expect(@junit.passes.count).to eq 1109
21
+ expect(@junit.errors.count).to eq 0
22
+ expect(@junit.skipped.count).to eq 0
23
+ end
24
+
25
+ it 'gets the right results for the selenium failure' do
26
+ @junit.parse 'spec/fixtures/selenium.xml'
27
+
28
+ expect(@junit.failures.count).to eq 1
29
+ expect(@junit.passes.count).to eq 0
30
+ expect(@junit.errors.count).to eq 0
31
+ expect(@junit.skipped.count).to eq 0
32
+ end
33
+
34
+ it 'gets the right results for the danger rspec failure' do
35
+ @junit.parse 'spec/fixtures/rspec_fail.xml'
36
+
37
+ expect(@junit.failures.count).to eq 1
38
+ expect(@junit.passes.count).to eq 190
39
+ expect(@junit.errors.count).to eq 0
40
+ expect(@junit.skipped.count).to eq 7
41
+ end
42
+
43
+ it 'shows a known markdown row' do
44
+ @junit.parse 'spec/fixtures/rspec_fail.xml'
45
+ @junit.report
46
+
47
+ output = @junit.status_report[:markdowns].first
48
+ row = '| Danger::CISource::CircleCI validates when circle all env vars are set | ./spec/lib/danger/ci_sources/circle_spec.rb | 0.012097|'
49
+ expect(output).to include(row)
50
+ end
51
+
52
+ it 'shows a warning for skipped' do
53
+ @junit.parse 'spec/fixtures/rspec_fail.xml'
54
+ @junit.show_skipped_tests = true
55
+ @junit.report
56
+
57
+ warnings = @junit.status_report[:warnings].first
58
+ expect(warnings).to eq('Skipped 7 tests.')
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,52 @@
1
+ require 'pathname'
2
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
+ $LOAD_PATH.unshift((ROOT + 'lib').to_s)
4
+ $LOAD_PATH.unshift((ROOT + 'spec').to_s)
5
+
6
+ require 'bundler/setup'
7
+ require 'pry'
8
+
9
+ require 'rspec'
10
+ require 'danger'
11
+
12
+ require 'danger_plugin'
13
+
14
+ # These functions are a subset of https://github.com/danger/danger/blob/master/spec/spec_helper.rb
15
+ # If you are expanding these files, see if it's already been done ^.
16
+
17
+ # A silent version of the user interface,
18
+ # it comes with an extra function `.string` which will
19
+ # strip all ANSI colours from the string.
20
+
21
+ # rubocop:disable Lint/NestedMethodDefinition
22
+ def testing_ui
23
+ @output = StringIO.new
24
+ def @output.winsize
25
+ [20, 9999]
26
+ end
27
+
28
+ cork = Cork::Board.new(out: @output)
29
+ def cork.string
30
+ out.string.gsub(/\e\[([;\d]+)?m/, '')
31
+ end
32
+ cork
33
+ end
34
+ # rubocop:enable Lint/NestedMethodDefinition
35
+
36
+ # Example environment (ENV) that would come from
37
+ # running a PR on TravisCI
38
+ def testing_env
39
+ {
40
+ 'HAS_JOSH_K_SEAL_OF_APPROVAL' => 'true',
41
+ 'TRAVIS_PULL_REQUEST' => '800',
42
+ 'TRAVIS_REPO_SLUG' => 'artsy/eigen',
43
+ 'TRAVIS_COMMIT_RANGE' => '759adcbd0d8f...13c4dc8bb61d',
44
+ 'DANGER_GITHUB_API_TOKEN' => '123sbdq54erfsd3422gdfio'
45
+ }
46
+ end
47
+
48
+ # A stubbed out Dangerfile for use in tests
49
+ def testing_dangerfile
50
+ env = Danger::EnvironmentManager.new(testing_env)
51
+ Danger::Dangerfile.new(env, testing_ui)
52
+ end