I installed and ran Rcov at work this week, and it ran great. Really good stuff. But, I installed it at home for a personal project and it''s writing coverage files for stuff outside my project. Below is a list of what''s in my coverage directory after running ''rcov test/*.rb'' Note: the only file directly in test is test_helper.rb. The real tests are in test/unit, etc. If I delete coverage/ and run ''rcov test/unit/*.rb'' I''ll have the reports for the app files that the unit tests test, plus all this extra garbage. Any ideas what''s causing this? Both machines (the one at work that works properly, and the one at home that doesn''t) are both running Fedora Core 5, Ruby 1.8.4, Rails 1.1.6. Both installs of Rcov were installed by downloading the tarball and running ''ruby setup.rb'' as root. The difference is that the home machine has the ZenTest and redgreen gems installed. [jon@monarch coverage]$ ls app-controllers-application_rb.html app-helpers-application_helper_rb.html config-boot_rb.html config-environment_rb.html config-routes_rb.html index.html -usr-lib-ruby-1_8-base64_rb.html -usr-lib-ruby-1_8-benchmark_rb.html -usr-lib-ruby-1_8-cgi-session-pstore_rb.html -usr-lib-ruby-1_8-cgi-session_rb.html -usr-lib-ruby-1_8-csv_rb.html -usr-lib-ruby-1_8-date-format_rb.html -usr-lib-ruby-1_8-date_rb.html -usr-lib-ruby-1_8-drb-acl_rb.html -usr-lib-ruby-1_8-drb-drb_rb.html -usr-lib-ruby-1_8-drb-eq_rb.html -usr-lib-ruby-1_8-drb-invokemethod_rb.html -usr-lib-ruby-1_8-drb_rb.html -usr-lib-ruby-1_8-e2mmap_rb.html -usr-lib-ruby-1_8-erb_rb.html -usr-lib-ruby-1_8-forwardable_rb.html -usr-lib-ruby-1_8-ipaddr_rb.html -usr-lib-ruby-1_8-irb-context_rb.html -usr-lib-ruby-1_8-irb-extend-command_rb.html -usr-lib-ruby-1_8-irb-init_rb.html -usr-lib-ruby-1_8-irb-input-method_rb.html -usr-lib-ruby-1_8-irb-locale_rb.html -usr-lib-ruby-1_8-irb-notifier_rb.html -usr-lib-ruby-1_8-irb-output-method_rb.html -usr-lib-ruby-1_8-irb_rb.html -usr-lib-ruby-1_8-irb-ruby-lex_rb.html -usr-lib-ruby-1_8-irb-ruby-token_rb.html -usr-lib-ruby-1_8-irb-slex_rb.html -usr-lib-ruby-1_8-irb-workspace_rb.html -usr-lib-ruby-1_8-kconv_rb.html -usr-lib-ruby-1_8-logger_rb.html -usr-lib-ruby-1_8-monitor_rb.html -usr-lib-ruby-1_8-mutex_m_rb.html -usr-lib-ruby-1_8-net-http_rb.html -usr-lib-ruby-1_8-net-https_rb.html -usr-lib-ruby-1_8-net-protocol_rb.html -usr-lib-ruby-1_8-net-smtp_rb.html -usr-lib-ruby-1_8-observer_rb.html -usr-lib-ruby-1_8-openssl-bn_rb.html -usr-lib-ruby-1_8-openssl-buffering_rb.html -usr-lib-ruby-1_8-openssl-cipher_rb.html -usr-lib-ruby-1_8-openssl-digest_rb.html -usr-lib-ruby-1_8-openssl_rb.html -usr-lib-ruby-1_8-openssl-ssl_rb.html -usr-lib-ruby-1_8-openssl-x509_rb.html -usr-lib-ruby-1_8-parsedate_rb.html -usr-lib-ruby-1_8-pathname_rb.html -usr-lib-ruby-1_8-pstore_rb.html -usr-lib-ruby-1_8-rational_rb.html -usr-lib-ruby-1_8-rexml-streamlistener_rb.html -usr-lib-ruby-1_8-set_rb.html -usr-lib-ruby-1_8-singleton_rb.html -usr-lib-ruby-1_8-soap-attachment_rb.html -usr-lib-ruby-1_8-soap-baseData_rb.html -usr-lib-ruby-1_8-soap-element_rb.html -usr-lib-ruby-1_8-soap-encodingstyle-aspDotNetHandler_rb.html -usr-lib-ruby-1_8-soap-encodingstyle-handler_rb.html -usr-lib-ruby-1_8-soap-encodingstyle-literalHandler_rb.html -usr-lib-ruby-1_8-soap-encodingstyle-soapHandler_rb.html -usr-lib-ruby-1_8-soap-generator_rb.html -usr-lib-ruby-1_8-soap-header-handlerset_rb.html -usr-lib-ruby-1_8-soap-httpconfigloader_rb.html -usr-lib-ruby-1_8-soap-mapping-factory_rb.html -usr-lib-ruby-1_8-soap-mapping-mapping_rb.html -usr-lib-ruby-1_8-soap-mapping_rb.html -usr-lib-ruby-1_8-soap-mapping-registry_rb.html -usr-lib-ruby-1_8-soap-mapping-rubytypeFactory_rb.html -usr-lib-ruby-1_8-soap-mapping-typeMap_rb.html -usr-lib-ruby-1_8-soap-mapping-wsdlliteralregistry_rb.html -usr-lib-ruby-1_8-soap-mimemessage_rb.html -usr-lib-ruby-1_8-soap-netHttpClient_rb.html -usr-lib-ruby-1_8-soap-parser_rb.html -usr-lib-ruby-1_8-soap-processor_rb.html -usr-lib-ruby-1_8-soap-property_rb.html -usr-lib-ruby-1_8-soap-rpc-driver_rb.html -usr-lib-ruby-1_8-soap-rpc-element_rb.html -usr-lib-ruby-1_8-soap-rpc-proxy_rb.html -usr-lib-ruby-1_8-soap-rpc-rpc_rb.html -usr-lib-ruby-1_8-soap-soap_rb.html -usr-lib-ruby-1_8-soap-streamHandler_rb.html -usr-lib-ruby-1_8-thread_rb.html -usr-lib-ruby-1_8-timeout_rb.html -usr-lib-ruby-1_8-time_rb.html -usr-lib-ruby-1_8-uri-common_rb.html -usr-lib-ruby-1_8-uri-ftp_rb.html -usr-lib-ruby-1_8-uri-generic_rb.html -usr-lib-ruby-1_8-uri-http_rb.html -usr-lib-ruby-1_8-uri-https_rb.html -usr-lib-ruby-1_8-uri-ldap_rb.html -usr-lib-ruby-1_8-uri-mailto_rb.html -usr-lib-ruby-1_8-uri_rb.html -usr-lib-ruby-1_8-xmlrpc-base64_rb.html -usr-lib-ruby-1_8-xmlrpc-client_rb.html -usr-lib-ruby-1_8-xmlrpc-config_rb.html -usr-lib-ruby-1_8-xmlrpc-create_rb.html -usr-lib-ruby-1_8-xmlrpc-datetime_rb.html -usr-lib-ruby-1_8-xmlrpc-marshal_rb.html -usr-lib-ruby-1_8-xmlrpc-parser_rb.html -usr-lib-ruby-1_8-xmlrpc-utils_rb.html -usr-lib-ruby-1_8-xsd-charset_rb.html -usr-lib-ruby-1_8-xsd-codegen-gensupport_rb.html -usr-lib-ruby-1_8-xsd-datatypes_rb.html -usr-lib-ruby-1_8-xsd-iconvcharset_rb.html -usr-lib-ruby-1_8-xsd-namedelements_rb.html -usr-lib-ruby-1_8-xsd-ns_rb.html -usr-lib-ruby-1_8-xsd-qname_rb.html -usr-lib-ruby-1_8-xsd-xmlparser-parser_rb.html -usr-lib-ruby-1_8-xsd-xmlparser_rb.html -usr-lib-ruby-1_8-xsd-xmlparser-rexmlparser_rb.html -usr-lib-ruby-1_8-xsd-xmlparser-xmlparser_rb.html -usr-lib-ruby-1_8-xsd-xmlparser-xmlscanner_rb.html -usr-lib-ruby-1_8-yaml-basenode_rb.html -usr-lib-ruby-1_8-yaml-constants_rb.html -usr-lib-ruby-1_8-yaml-error_rb.html -usr-lib-ruby-1_8-yaml_rb.html -usr-lib-ruby-1_8-yaml-rubytypes_rb.html -usr-lib-ruby-1_8-yaml-stream_rb.html -usr-lib-ruby-1_8-yaml-syck_rb.html -usr-lib-ruby-1_8-yaml-tag_rb.html -usr-lib-ruby-1_8-yaml-types_rb.html -usr-lib-ruby-1_8-yaml-ypath_rb.html -usr-lib-ruby-site_ruby-1_8-rbconfig-datadir_rb.html -usr-lib-ruby-site_ruby-1_8-rcov_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-custom_require_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-gem_openssl_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-rubygems_version_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-security_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-source_index_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-specification_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-user_interaction_rb.html -usr-lib-ruby-site_ruby-1_8-rubygems-version_rb.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
jgarvin.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-15 14:14 UTC
Re: Rcov going berserk
Update: ZenTest and redgreen have been removed. I created brand new clean Rails project and a do-nothing test that simply asserts true and re-ran Rcov on it but I still get the same behavior. Any suggestions would be appreciated? J Garvin wrote:> I installed and ran Rcov at work this week, and it ran great. Really good > stuff. But, I installed it at home for a personal project and it''s writing > coverage files for stuff outside my project. Below is a list of what''s in > my coverage directory after running ''rcov test/*.rb'' > Note: the only file directly in test is test_helper.rb. The real tests are > in test/unit, etc. If I delete coverage/ and run ''rcov test/unit/*.rb'' I''ll > have the reports for the app files that the unit tests test, plus all this > extra garbage. Any ideas what''s causing this? Both machines (the one at > work that works properly, and the one at home that doesn''t) are both > running Fedora Core 5, Ruby 1.8.4, Rails 1.1.6. Both installs of Rcov were > installed by downloading the tarball and running ''ruby setup.rb'' as root. > The difference is that the home machine has the ZenTest and redgreen gems > installed. > > [jon@monarch coverage]$ ls > app-controllers-application_rb.html > app-helpers-application_helper_rb.html > config-boot_rb.html > config-environment_rb.html > config-routes_rb.html > index.html > -usr-lib-ruby-1_8-base64_rb.html > -usr-lib-ruby-1_8-benchmark_rb.html > -usr-lib-ruby-1_8-cgi-session-pstore_rb.html > -usr-lib-ruby-1_8-cgi-session_rb.html > -usr-lib-ruby-1_8-csv_rb.html > -usr-lib-ruby-1_8-date-format_rb.html > -usr-lib-ruby-1_8-date_rb.html > -usr-lib-ruby-1_8-drb-acl_rb.html > -usr-lib-ruby-1_8-drb-drb_rb.html > -usr-lib-ruby-1_8-drb-eq_rb.html > -usr-lib-ruby-1_8-drb-invokemethod_rb.html > -usr-lib-ruby-1_8-drb_rb.html > -usr-lib-ruby-1_8-e2mmap_rb.html > -usr-lib-ruby-1_8-erb_rb.html > -usr-lib-ruby-1_8-forwardable_rb.html > -usr-lib-ruby-1_8-ipaddr_rb.html > -usr-lib-ruby-1_8-irb-context_rb.html > -usr-lib-ruby-1_8-irb-extend-command_rb.html > -usr-lib-ruby-1_8-irb-init_rb.html > -usr-lib-ruby-1_8-irb-input-method_rb.html > -usr-lib-ruby-1_8-irb-locale_rb.html > -usr-lib-ruby-1_8-irb-notifier_rb.html > -usr-lib-ruby-1_8-irb-output-method_rb.html > -usr-lib-ruby-1_8-irb_rb.html > -usr-lib-ruby-1_8-irb-ruby-lex_rb.html > -usr-lib-ruby-1_8-irb-ruby-token_rb.html > -usr-lib-ruby-1_8-irb-slex_rb.html > -usr-lib-ruby-1_8-irb-workspace_rb.html > -usr-lib-ruby-1_8-kconv_rb.html > -usr-lib-ruby-1_8-logger_rb.html > -usr-lib-ruby-1_8-monitor_rb.html > -usr-lib-ruby-1_8-mutex_m_rb.html > -usr-lib-ruby-1_8-net-http_rb.html > -usr-lib-ruby-1_8-net-https_rb.html > -usr-lib-ruby-1_8-net-protocol_rb.html > -usr-lib-ruby-1_8-net-smtp_rb.html > -usr-lib-ruby-1_8-observer_rb.html > -usr-lib-ruby-1_8-openssl-bn_rb.html > -usr-lib-ruby-1_8-openssl-buffering_rb.html > -usr-lib-ruby-1_8-openssl-cipher_rb.html > -usr-lib-ruby-1_8-openssl-digest_rb.html > -usr-lib-ruby-1_8-openssl_rb.html > -usr-lib-ruby-1_8-openssl-ssl_rb.html > -usr-lib-ruby-1_8-openssl-x509_rb.html > -usr-lib-ruby-1_8-parsedate_rb.html > -usr-lib-ruby-1_8-pathname_rb.html > -usr-lib-ruby-1_8-pstore_rb.html > -usr-lib-ruby-1_8-rational_rb.html > -usr-lib-ruby-1_8-rexml-streamlistener_rb.html > -usr-lib-ruby-1_8-set_rb.html > -usr-lib-ruby-1_8-singleton_rb.html > -usr-lib-ruby-1_8-soap-attachment_rb.html > -usr-lib-ruby-1_8-soap-baseData_rb.html > -usr-lib-ruby-1_8-soap-element_rb.html > -usr-lib-ruby-1_8-soap-encodingstyle-aspDotNetHandler_rb.html > -usr-lib-ruby-1_8-soap-encodingstyle-handler_rb.html > -usr-lib-ruby-1_8-soap-encodingstyle-literalHandler_rb.html > -usr-lib-ruby-1_8-soap-encodingstyle-soapHandler_rb.html > -usr-lib-ruby-1_8-soap-generator_rb.html > -usr-lib-ruby-1_8-soap-header-handlerset_rb.html > -usr-lib-ruby-1_8-soap-httpconfigloader_rb.html > -usr-lib-ruby-1_8-soap-mapping-factory_rb.html > -usr-lib-ruby-1_8-soap-mapping-mapping_rb.html > -usr-lib-ruby-1_8-soap-mapping_rb.html > -usr-lib-ruby-1_8-soap-mapping-registry_rb.html > -usr-lib-ruby-1_8-soap-mapping-rubytypeFactory_rb.html > -usr-lib-ruby-1_8-soap-mapping-typeMap_rb.html > -usr-lib-ruby-1_8-soap-mapping-wsdlliteralregistry_rb.html > -usr-lib-ruby-1_8-soap-mimemessage_rb.html > -usr-lib-ruby-1_8-soap-netHttpClient_rb.html > -usr-lib-ruby-1_8-soap-parser_rb.html > -usr-lib-ruby-1_8-soap-processor_rb.html > -usr-lib-ruby-1_8-soap-property_rb.html > -usr-lib-ruby-1_8-soap-rpc-driver_rb.html > -usr-lib-ruby-1_8-soap-rpc-element_rb.html > -usr-lib-ruby-1_8-soap-rpc-proxy_rb.html > -usr-lib-ruby-1_8-soap-rpc-rpc_rb.html > -usr-lib-ruby-1_8-soap-soap_rb.html > -usr-lib-ruby-1_8-soap-streamHandler_rb.html > -usr-lib-ruby-1_8-thread_rb.html > -usr-lib-ruby-1_8-timeout_rb.html > -usr-lib-ruby-1_8-time_rb.html > -usr-lib-ruby-1_8-uri-common_rb.html > -usr-lib-ruby-1_8-uri-ftp_rb.html > -usr-lib-ruby-1_8-uri-generic_rb.html > -usr-lib-ruby-1_8-uri-http_rb.html > -usr-lib-ruby-1_8-uri-https_rb.html > -usr-lib-ruby-1_8-uri-ldap_rb.html > -usr-lib-ruby-1_8-uri-mailto_rb.html > -usr-lib-ruby-1_8-uri_rb.html > -usr-lib-ruby-1_8-xmlrpc-base64_rb.html > -usr-lib-ruby-1_8-xmlrpc-client_rb.html > -usr-lib-ruby-1_8-xmlrpc-config_rb.html > -usr-lib-ruby-1_8-xmlrpc-create_rb.html > -usr-lib-ruby-1_8-xmlrpc-datetime_rb.html > -usr-lib-ruby-1_8-xmlrpc-marshal_rb.html > -usr-lib-ruby-1_8-xmlrpc-parser_rb.html > -usr-lib-ruby-1_8-xmlrpc-utils_rb.html > -usr-lib-ruby-1_8-xsd-charset_rb.html > -usr-lib-ruby-1_8-xsd-codegen-gensupport_rb.html > -usr-lib-ruby-1_8-xsd-datatypes_rb.html > -usr-lib-ruby-1_8-xsd-iconvcharset_rb.html > -usr-lib-ruby-1_8-xsd-namedelements_rb.html > -usr-lib-ruby-1_8-xsd-ns_rb.html > -usr-lib-ruby-1_8-xsd-qname_rb.html > -usr-lib-ruby-1_8-xsd-xmlparser-parser_rb.html > -usr-lib-ruby-1_8-xsd-xmlparser_rb.html > -usr-lib-ruby-1_8-xsd-xmlparser-rexmlparser_rb.html > -usr-lib-ruby-1_8-xsd-xmlparser-xmlparser_rb.html > -usr-lib-ruby-1_8-xsd-xmlparser-xmlscanner_rb.html > -usr-lib-ruby-1_8-yaml-basenode_rb.html > -usr-lib-ruby-1_8-yaml-constants_rb.html > -usr-lib-ruby-1_8-yaml-error_rb.html > -usr-lib-ruby-1_8-yaml_rb.html > -usr-lib-ruby-1_8-yaml-rubytypes_rb.html > -usr-lib-ruby-1_8-yaml-stream_rb.html > -usr-lib-ruby-1_8-yaml-syck_rb.html > -usr-lib-ruby-1_8-yaml-tag_rb.html > -usr-lib-ruby-1_8-yaml-types_rb.html > -usr-lib-ruby-1_8-yaml-ypath_rb.html > -usr-lib-ruby-site_ruby-1_8-rbconfig-datadir_rb.html > -usr-lib-ruby-site_ruby-1_8-rcov_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-custom_require_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-gem_openssl_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-rubygems_version_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-security_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-source_index_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-specification_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-user_interaction_rb.html > -usr-lib-ruby-site_ruby-1_8-rubygems-version_rb.html--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---