Skip to content

Instantly share code, notes, and snippets.

@rsanheim
Created December 17, 2008 14:50
Show Gist options
  • Save rsanheim/37075 to your computer and use it in GitHub Desktop.
Save rsanheim/37075 to your computer and use it in GitHub Desktop.
(in /Users/rsanheim/src/oss/rspec)
Profiling enabled.
.........................................................................................................................................................................................................................................................................*.....*......................*....................................................*...............................................................................................................................................................................................................................................................................................................................................................*..........................................................................................................................................................................................................................................................................................................................................................................................................
Top 10 slowest examples:
0.4367790 HeckleRunner should heckle all methods in all classes in a module
0.3105160 HeckleRunner should heckle all methods in a class
0.1935270 Spec::Runner::CommandLine.run should run directory
0.1866850 Spec::Runner::Formatter::TextMateFormatter functional spec using --diff should produce HTML identical to the one we designed manually with --diff
0.1825510 Spec::Runner::Formatter::HtmlFormatter should produce HTML identical to the one we designed manually with --diff
0.1116700 ExampleGroup with test/unit/interop with example that raises an error should return an exit code of 256
0.1094330 ExampleGroup with test/unit/interop with passing examples should output 0 failures
0.1083050 Test::Unit::TestCase with failing test case should return an exit code of 256
0.1079830 The bin/spec script should have no warnings
0.1075730 ExampleGroup with test/unit/interop with failing examples should return an exit code of 256
Pending:
Object#should should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:43
Object#should_not should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:90
Test::Unit::TestCase not yet implemented examples: this example should be reported as pending (not an error) (Not Yet Implemented)
./spec/spec/interop/test/unit/testcase_spec.rb:47
arbitrary predicate with DelegateClass should access methods defined in the delegating class (LH[#48]) (
Looks like DelegateClass is delegating #should to the
delegate. Not sure how to fix this one. Or if we even should."
)
./spec/spec/matchers/be_spec.rb:265
mock failure should tell you when it receives the right message with the wrong args if you stub the method (fix bug 15719)
./spec/spec/mocks/bug_report_15719_spec.rb:17
Finished in 4.864512 seconds
1094 examples, 0 failures, 5 pending
Profiling enabled.
F.................................................................F.............................................................................................................................F........................................................................*.....*......................*....................................................*...............................................................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................................................F........FF............................................................................................................................................
Top 10 slowest examples:
0.4560370 HeckleRunner should heckle all methods in all classes in a module
0.4367790 HeckleRunner should heckle all methods in all classes in a module
0.4293990 HeckleRunner should heckle all methods in a class
0.3105160 HeckleRunner should heckle all methods in a class
0.1935270 Spec::Runner::CommandLine.run should run directory
0.1866850 Spec::Runner::Formatter::TextMateFormatter functional spec using --diff should produce HTML identical to the one we designed manually with --diff
0.1851470 Spec::Runner::Formatter::HtmlFormatter should produce HTML identical to the one we designed manually with --diff
0.1825510 Spec::Runner::Formatter::HtmlFormatter should produce HTML identical to the one we designed manually with --diff
0.1209300 Spec::Runner::Formatter::TextMateFormatter functional spec using --diff should produce HTML identical to the one we designed manually with --diff
0.1116700 ExampleGroup with test/unit/interop with example that raises an error should return an exit code of 256
Pending:
Object#should should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:43
Object#should_not should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:90
Test::Unit::TestCase not yet implemented examples: this example should be reported as pending (not an error) (Not Yet Implemented)
./spec/spec/interop/test/unit/testcase_spec.rb:47
arbitrary predicate with DelegateClass should access methods defined in the delegating class (LH[#48]) (
Looks like DelegateClass is delegating #should to the
delegate. Not sure how to fix this one. Or if we even should."
)
./spec/spec/matchers/be_spec.rb:265
mock failure should tell you when it receives the right message with the wrong args if you stub the method (fix bug 15719)
./spec/spec/mocks/bug_report_15719_spec.rb:17
Object#should should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:43
Object#should_not should raise error if it receives no argument and it is not used as a left side of an operator (Is it even possible to catch this?)
./spec/spec/expectations/extensions/object_spec.rb:90
Test::Unit::TestCase not yet implemented examples: this example should be reported as pending (not an error) (Not Yet Implemented)
./spec/spec/interop/test/unit/testcase_spec.rb:47
arbitrary predicate with DelegateClass should access methods defined in the delegating class (LH[#48]) (
Looks like DelegateClass is delegating #should to the
delegate. Not sure how to fix this one. Or if we even should."
)
./spec/spec/matchers/be_spec.rb:265
mock failure should tell you when it receives the right message with the wrong args if you stub the method (fix bug 15719)
./spec/spec/mocks/bug_report_15719_spec.rb:17
1)
Spec::Mocks::MockExpectationError in 'Autotest::Rspec discovery adds the rspec autotest plugin'
#<Spec::Runner::Options:0x283a854> expected :run_examples with (no args) once, but received it 0 times
./spec/spec/runner/heckler_spec.rb:8:
2)
'Spec::Example::ExampleGroupFactory#create_example_group with :shared => true should create and register a Spec::Example::SharedExampleGroup' FAILED
expected Spec::Example::SharedExampleGroup to include #<Spec::Example::SharedExampleGroup:0x29ca8cc>
./spec/spec/example/example_group_factory_spec.rb:131:
3)
'Spec::Example::ExampleMethods lifecycle should pass before and after callbacks to all ExampleGroup subclasses' FAILED
expected: 6,
got: 9 (using ==)
Diff:
@@ -1,2 +1,2 @@
-6
+9
./spec/spec/example/example_methods_spec.rb:72:
./spec/spec/example/example_methods_spec.rb:78:
4)
RuntimeError in 'Spec::Runner::CommandLine.run should run directory'
Shared Example Group 'non-full Stack' can not be found
/Users/rsanheim/src/oss/rspec/examples/passing/stack_spec.rb:14:
/Users/rsanheim/src/oss/rspec/examples/passing/stack_spec.rb:5:
./spec/spec/story/runner/../../../spec_helper.rb:40:in `run_with'
./spec/spec/runner/command_line_spec.rb:15:
5)
'Spec::Runner::DrbCommandLine without running local server should print error when there is no running local server' FAILED
expected: /No server is running/,
got: "" (using =~)
Diff:
@@ -1,2 +1,2 @@
-/No server is running/
+""
./spec/spec/runner/drb_command_line_spec.rb:13:
6)
Errno::EADDRINUSE in 'with local server before(:all)'
Address already in use - bind(2)
./spec/spec/runner/drb_command_line_spec.rb:33:
Finished in 4.957028 seconds
1091 examples, 6 failures, 5 pending
+----------------------------------------------------+-------+-------+--------+
| File | Lines | LOC | COV |
+----------------------------------------------------+-------+-------+--------+
|lib/spec/dsl.rb | 1 | 1 | 100.0% |
|lib/spec/dsl/main.rb | 86 | 26 | 100.0% |
|lib/spec/example.rb | 187 | 38 | 100.0% |
|lib/spec/example/before_and_after_hooks.rb | 81 | 56 | 100.0% |
|lib/spec/example/configuration.rb | 167 | 62 | 100.0% |
|lib/spec/example/errors.rb | 30 | 24 | 100.0% |
|lib/spec/example/example_group.rb | 26 | 20 | 100.0% |
|lib/spec/example/example_group_factory.rb | 87 | 61 | 100.0% |
|lib/spec/example/example_group_methods.rb | 413 | 288 | 100.0% |
|lib/spec/example/example_matcher.rb | 44 | 36 | 100.0% |
|lib/spec/example/example_methods.rb | 168 | 125 | 100.0% |
|lib/spec/example/module_reopening_fix.rb | 21 | 18 | 100.0% |
|lib/spec/example/pending.rb | 18 | 18 | 100.0% |
|lib/spec/example/shared_example_group.rb | 63 | 51 | 100.0% |
|lib/spec/expectations.rb | 61 | 28 | 100.0% |
|lib/spec/expectations/differs/default.rb | 66 | 53 | 100.0% |
|lib/spec/expectations/errors.rb | 12 | 9 | 100.0% |
|lib/spec/expectations/extensions.rb | 2 | 2 | 100.0% |
|lib/spec/expectations/extensions/object.rb | 63 | 15 | 100.0% |
|...pec/expectations/extensions/string_and_symbol.rb | 17 | 15 | 100.0% |
|lib/spec/expectations/handler.rb | 47 | 40 | 100.0% |
|lib/spec/expectations/wrap_expectation.rb | 56 | 13 | 100.0% |
|lib/spec/matchers.rb | 140 | 23 | 100.0% |
|lib/spec/matchers/be.rb | 203 | 140 | 100.0% |
|lib/spec/matchers/be_close.rb | 21 | 11 | 100.0% |
|lib/spec/matchers/change.rb | 148 | 77 | 100.0% |
|lib/spec/matchers/eql.rb | 25 | 12 | 100.0% |
|lib/spec/matchers/equal.rb | 25 | 12 | 100.0% |
|lib/spec/matchers/errors.rb | 5 | 5 | 100.0% |
|lib/spec/matchers/exist.rb | 16 | 11 | 100.0% |
|lib/spec/matchers/generated_descriptions.rb | 48 | 36 | 100.0% |
|lib/spec/matchers/has.rb | 18 | 16 | 100.0% |
|lib/spec/matchers/have.rb | 150 | 90 | 100.0% |
|lib/spec/matchers/include.rb | 80 | 55 | 100.0% |
|lib/spec/matchers/match.rb | 22 | 12 | 100.0% |
|lib/spec/matchers/match_array.rb | 75 | 49 | 100.0% |
|lib/spec/matchers/method_missing.rb | 9 | 9 | 100.0% |
|lib/spec/matchers/operator_matcher.rb | 76 | 60 | 100.0% |
|lib/spec/matchers/raise_error.rb | 128 | 82 | 100.0% |
|lib/spec/matchers/respond_to.rb | 47 | 31 | 100.0% |
|lib/spec/matchers/satisfy.rb | 47 | 23 | 100.0% |
|lib/spec/matchers/simple_matcher.rb | 132 | 35 | 100.0% |
|lib/spec/matchers/throw_symbol.rb | 106 | 66 | 100.0% |
|lib/spec/mocks.rb | 200 | 6 | 100.0% |
|lib/spec/mocks/argument_constraints.rb | 203 | 125 | 100.0% |
|lib/spec/mocks/argument_expectation.rb | 49 | 38 | 100.0% |
|lib/spec/mocks/error_generator.rb | 84 | 67 | 100.0% |
|lib/spec/mocks/errors.rb | 10 | 8 | 100.0% |
|lib/spec/mocks/extensions.rb | 1 | 1 | 100.0% |
|lib/spec/mocks/extensions/object.rb | 3 | 3 | 100.0% |
|lib/spec/mocks/framework.rb | 15 | 11 | 100.0% |
|lib/spec/mocks/message_expectation.rb | 326 | 258 | 100.0% |
|lib/spec/mocks/methods.rb | 51 | 42 | 100.0% |
|lib/spec/mocks/mock.rb | 56 | 39 | 94.9% |
|lib/spec/mocks/order_group.rb | 29 | 24 | 100.0% |
|lib/spec/mocks/proxy.rb | 226 | 186 | 100.0% |
|lib/spec/mocks/space.rb | 28 | 24 | 100.0% |
|lib/spec/mocks/spec_methods.rb | 46 | 17 | 88.2% |
|lib/spec/runner/backtrace_tweaker.rb | 56 | 51 | 88.2% |
|lib/spec/runner/class_and_arguments_parser.rb | 14 | 14 | 100.0% |
|lib/spec/runner/command_line.rb | 15 | 14 | 100.0% |
|lib/spec/runner/drb_command_line.rb | 20 | 16 | 100.0% |
|lib/spec/runner/example_group_runner.rb | 59 | 46 | 100.0% |
|lib/spec/runner/formatter/base_formatter.rb | 79 | 36 | 100.0% |
|lib/spec/runner/formatter/base_text_formatter.rb | 127 | 103 | 98.1% |
|...er/formatter/failing_example_groups_formatter.rb | 27 | 23 | 100.0% |
|lib/spec/runner/formatter/html_formatter.rb | 337 | 282 | 100.0% |
|lib/spec/runner/formatter/nested_text_formatter.rb | 65 | 55 | 100.0% |
|lib/spec/runner/formatter/profile_formatter.rb | 51 | 41 | 100.0% |
|lib/spec/runner/formatter/progress_bar_formatter.rb | 34 | 28 | 100.0% |
|lib/spec/runner/formatter/snippet_extractor.rb | 52 | 46 | 100.0% |
|lib/spec/runner/formatter/specdoc_formatter.rb | 39 | 34 | 100.0% |
|lib/spec/runner/formatter/story/html_formatter.rb | 174 | 149 | 100.0% |
|...c/runner/formatter/story/plain_text_formatter.rb | 194 | 167 | 100.0% |
|...runner/formatter/story/progress_bar_formatter.rb | 42 | 36 | 100.0% |
|lib/spec/runner/formatter/text_mate_formatter.rb | 16 | 14 | 100.0% |
|lib/spec/runner/heckle_runner.rb | 72 | 57 | 100.0% |
|lib/spec/runner/option_parser.rb | 209 | 186 | 93.0% |
|lib/spec/runner/options.rb | 320 | 280 | 76.8% |
|lib/spec/runner/reporter.rb | 167 | 139 | 96.4% |
|lib/spec/runner/spec_parser.rb | 72 | 63 | 17.5% |
|lib/spec/story.rb | 10 | 10 | 100.0% |
|lib/spec/story/extensions.rb | 3 | 3 | 100.0% |
|lib/spec/story/extensions/main.rb | 86 | 41 | 31.7% |
|lib/spec/story/extensions/regexp.rb | 9 | 8 | 100.0% |
|lib/spec/story/extensions/string.rb | 9 | 8 | 100.0% |
|lib/spec/story/given_scenario.rb | 14 | 13 | 38.5% |
|lib/spec/story/runner.rb | 57 | 47 | 40.4% |
|lib/spec/story/runner/plain_text_story_runner.rb | 48 | 32 | 28.1% |
|lib/spec/story/runner/scenario_collector.rb | 18 | 16 | 43.8% |
|lib/spec/story/runner/scenario_runner.rb | 54 | 46 | 19.6% |
|lib/spec/story/runner/story_mediator.rb | 137 | 112 | 28.6% |
|lib/spec/story/runner/story_parser.rb | 247 | 198 | 31.3% |
|lib/spec/story/runner/story_runner.rb | 74 | 64 | 20.3% |
|lib/spec/story/scenario.rb | 14 | 12 | 41.7% |
|lib/spec/story/step.rb | 70 | 57 | 29.8% |
|lib/spec/story/step_group.rb | 89 | 72 | 30.6% |
|lib/spec/story/step_mother.rb | 38 | 32 | 28.1% |
|lib/spec/story/story.rb | 39 | 34 | 26.5% |
|lib/spec/story/world.rb | 124 | 92 | 27.2% |
|lib/spec/version.rb | 15 | 12 | 100.0% |
|plugins/mock_frameworks/rspec.rb | 20 | 19 | 100.0% |
|spec/ruby_forker.rb | 13 | 10 | 100.0% |
+----------------------------------------------------+-------+-------+--------+
|Total | 7993 | 5521 | 86.3% |
+----------------------------------------------------+-------+-------+--------+
86.3% 103 file(s) 7993 Lines 5521 LOC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment