Hello community, here is the log from the commit of package perl-Test-Spec for openSUSE:Factory checked in at 2012-02-16 15:00:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Test-Spec (Old) and /work/SRC/openSUSE:Factory/.perl-Test-Spec.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-Spec", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Test-Spec/perl-Test-Spec.changes 2012-01-05 13:49:36.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Test-Spec.new/perl-Test-Spec.changes 2012-02-16 15:00:43.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Feb 16 08:19:09 UTC 2012 - [email protected] + +- updated to 0.40 + - Fixed problem that caused Test::Spec usage errors (e.g. 'describe "foo";' + without a subroutine argument) to be reported from inside the library, + instead of the caller's perspective where the actual error is. + +------------------------------------------------------------------- Old: ---- Test-Spec-0.39.tar.gz New: ---- Test-Spec-0.40.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Test-Spec.spec ++++++ --- /var/tmp/diff_new_pack.MrhgHi/_old 2012-02-16 15:00:44.000000000 +0100 +++ /var/tmp/diff_new_pack.MrhgHi/_new 2012-02-16 15:00:44.000000000 +0100 @@ -1,8 +1,7 @@ -# vim: set sw=4 ts=4 et nu: # # spec file for package perl-Test-Spec # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,81 +14,70 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120 -%define with_test 1 -%endif + Name: perl-Test-Spec -Version: 0.39 +Version: 0.40 Release: 0 +%define cpan_name Test-Spec Summary: Write tests in a declarative specification style -License: Artistic-1.0 or GPL-1.0+ +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/P/PH/PHILIP/Test-Spec-%{version}.tar.gz -Url: http://search.cpan.org/dist/Test-Spec +Url: http://search.cpan.org/dist/Test-Spec/ +Source: http://www.cpan.org/authors/id/P/PH/PHILIP/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make +BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(List::Util) BuildRequires: perl(Package::Stash) >= 0.23 -BuildRequires: perl(Scalar::Util) +BuildRequires: perl(TAP::Parser) BuildRequires: perl(Test::Deep) >= 0.103 -BuildRequires: perl(Test::More) BuildRequires: perl(Test::Trap) BuildRequires: perl(Tie::IxHash) -BuildRequires: perl(constant) -Requires: perl(Scalar::Util) -Requires: perl(Tie::IxHash) +#BuildRequires: perl(Test::Spec) +#BuildRequires: perl(Test::Spec::Context) +#BuildRequires: perl(Test::Spec::Mocks) +#BuildRequires: perl(Test::Spec::Mocks::Expectation) +#BuildRequires: perl(Test::Spec::SharedHash) +#BuildRequires: perl(Tie::StdHash) Requires: perl(Package::Stash) >= 0.23 -Requires: perl(Test::Trap) -Requires: perl(constant) -Requires: perl(Exporter) -Requires: perl(Carp) -Requires: perl(List::Util) -Requires: perl(Test::More) +Requires: perl(TAP::Parser) Requires: perl(Test::Deep) >= 0.103 -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif +Requires: perl(Test::Trap) +Requires: perl(Tie::IxHash) +%{perl_requires} %description This is a declarative specification-style testing system for behavior-driven development (BDD) in Perl. The tests (a.k.a. examples) are -named with strings instead of subroutine names, so your fingers will -suffer less fatigue from underscore-itis, with the side benefit that the -test reports are more legible. +named with strings instead of subroutine names, so your fingers will suffer +less fatigue from underscore-itis, with the side benefit that the test +reports are more legible. + +This module is inspired by and borrows heavily from RSpec +(http://rspec.info/documentation/), a BDD tool for the Ruby programming +language. %prep -%setup -q -n "Test-Spec-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?_smp_flags} - -%install -%perl_make_install -%perl_process_packlist +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} -%if 0%{?with_test} +%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120 %check -%__make test +%{__make} test %endif -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes README -%dir %{perl_vendorlib}/Test -%{perl_vendorlib}/Test/Spec.pm -%{perl_vendorlib}/Test/Spec -%doc %{perl_man3dir}/Test::Spec.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/Test::Spec::*.%{perl_man3ext}%{ext_man} %changelog ++++++ Test-Spec-0.39.tar.gz -> Test-Spec-0.40.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/Changes new/Test-Spec-0.40/Changes --- old/Test-Spec-0.39/Changes 2011-08-31 06:57:06.000000000 +0200 +++ new/Test-Spec-0.40/Changes 2012-01-31 00:43:31.000000000 +0100 @@ -1,6 +1,11 @@ Revision history for Perl extension Test::Spec. -0.38 Wed Aug 31 00:52:00 EST 2011 +0.40 Mon Jan 30 18:38:00 EST 2012 + - Fixed problem that caused Test::Spec usage errors (e.g. 'describe "foo";' + without a subroutine argument) to be reported from inside the library, + instead of the caller's perspective where the actual error is. + +0.39 Wed Aug 31 00:52:00 EST 2011 - Added xit/xthey/xdescribe to mark TODO tests, inspired by the Jasmine JavaScript framework. Contributed by Marian Schubert (issue #10). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/MANIFEST new/Test-Spec-0.40/MANIFEST --- old/Test-Spec-0.39/MANIFEST 2011-08-31 07:03:16.000000000 +0200 +++ new/Test-Spec-0.40/MANIFEST 2012-01-31 00:44:24.000000000 +0100 @@ -26,4 +26,5 @@ t/spec_helper.t t/strict_violating_spec.pl t/test_helper.pl +t/uncompilable_spec.pl META.yml Module meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/META.yml new/Test-Spec-0.40/META.yml --- old/Test-Spec-0.39/META.yml 2011-08-31 07:03:16.000000000 +0200 +++ new/Test-Spec-0.40/META.yml 2012-01-31 00:44:24.000000000 +0100 @@ -1,6 +1,6 @@ --- #YAML:1.0 name: Test-Spec -version: 0.39 +version: 0.40 abstract: Write tests in a declarative specification style author: - Philip Garrett <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/lib/Test/Spec.pm new/Test-Spec-0.40/lib/Test/Spec.pm --- old/Test-Spec-0.39/lib/Test/Spec.pm 2011-08-31 06:57:06.000000000 +0200 +++ new/Test-Spec-0.40/lib/Test/Spec.pm 2012-01-31 00:43:31.000000000 +0100 @@ -3,7 +3,7 @@ use warnings; use Test::Trap (); # load as early as possible to override CORE::exit -our $VERSION = '0.39'; +our $VERSION = '0.40'; use base qw(Exporter); @@ -68,7 +68,12 @@ return; } - eval "package $callpkg; use base 'Test::Spec';"; + eval qq{ + package $callpkg; + use base 'Test::Spec'; + # allow Test::Spec usage errors to be reported via Carp + our \@CARP_NOT = qw($callpkg); + }; die $@ if $@; Test::Spec::ExportProxy->export_to_level(1, $callpkg); $class->export_to_level(1, $callpkg); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/t/show_exceptions.t new/Test-Spec-0.40/t/show_exceptions.t --- old/Test-Spec-0.39/t/show_exceptions.t 2011-06-29 18:53:53.000000000 +0200 +++ new/Test-Spec-0.40/t/show_exceptions.t 2012-01-31 00:43:24.000000000 +0100 @@ -25,6 +25,11 @@ it "should continue running tests after an exception is encountered" => sub { like($tap, qr/^ok \d+ - Test::Spec should continue testing/m); }; + + it "should report usage errors from the location of the error" => sub { + my ($utap) = split /[\r\n]+/, capture_tap("uncompilable_spec.pl"); + like($utap, qr/at .*uncompilable_spec.pl line \d+/); + }; }; runtests unless caller; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Test-Spec-0.39/t/uncompilable_spec.pl new/Test-Spec-0.40/t/uncompilable_spec.pl --- old/Test-Spec-0.39/t/uncompilable_spec.pl 1970-01-01 01:00:00.000000000 +0100 +++ new/Test-Spec-0.40/t/uncompilable_spec.pl 2012-01-31 00:43:24.000000000 +0100 @@ -0,0 +1,15 @@ +#!/usr/bin/env perl +# +# uncompilable_spec.pl +# +# Expected to fail and report Test::Spec usage error from the correct stack +# frame (i.e. "at uncompilable_spec.pl line 13"). +# +######################################################################## +# + +use Test::Spec; + +describe "Test::Spec"; + +runtests unless caller; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
