perl-Test-Base/perl-Test-Base.spec
Stephan Kulow ab72acced4 - updated to 0.88
- Remove a debugging line.
 
 0.87 Tue Aug 19 16:35:34 PDT 2014
  - Replace tabs with spaces
 
 0.86 Mon Aug 18 08:29:20 PDT 2014
  - Fix for issue/15
 
 0.85 Mon Aug 18 08:07:52 PDT 2014
  - Pull Module::Install::TestBase out of Test::Base
  - It will be released in separate dist
  - Was causing Test::Base to fail tests
 
 0.84 Sat Aug 16 15:08:32 PDT 2014
  - Remove .gitignore
  - Fix Meta error. s/zild/=zild/
 
 0.83 Sat Aug 16 12:31:00 PDT 2014
  - Meta 0.0.2
 
 0.82 Sat Aug 16 04:14:25 PDT 2014
  - Eliminate spurious trailing whitespace
 
 0.81 Sat Aug 16 02:52:12 PDT 2014
  - Eliminate File::Basename from test/
 
 0.80 Fri Aug 15 20:49:55 PDT 2014
  - Add t/000-require-modules.t

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Base?expand=0&rev=20
2015-04-13 17:32:38 +00:00

91 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Test-Base
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Test-Base
Version: 0.88
Release: 0
%define cpan_name Test-Base
Summary: A Data Driven Testing Framework
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Base/
Source: http://www.cpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Algorithm::Diff) >= 1.15
BuildRequires: perl(Spiffy) >= 0.40
BuildRequires: perl(Text::Diff) >= 0.35
Requires: perl(Spiffy) >= 0.40
Recommends: perl(Test::Deep)
%{perl_requires}
%description
Testing is usually the ugly part of Perl module authoring. Perl gives you a
standard way to run tests with Test::Harness, and basic testing primitives
with Test::More. After that you are pretty much on your own to develop a
testing framework and philosophy. Test::More encourages you to make your
own framework by subclassing Test::Builder, but that is not trivial.
Test::Base gives you a way to write your own test framework base class that
_is_ trivial. In fact it is as simple as two lines:
package MyTestFramework;
use Test::Base -Base;
A module called 'MyTestFramework.pm' containing those two lines, will give
all the power of Test::More and all the power of Test::Base to every test
file that uses it. As you build up the capabilities of 'MyTestFramework',
your tests will have all of that power as well.
'MyTestFramework' becomes a place for you to put all of your reusable
testing bits. As you write tests, you will see patterns and duplication,
and you can "upstream" them into 'MyTestFramework'. Of course, you don't
have to subclass Test::Base at all. You can use it directly in many
applications, including everywhere you would use Test::More.
Test::Base concentrates on offering reusable data driven patterns, so that
you can write tests with a minimum of code. At the heart of all testing you
have inputs, processes and expected outputs. Test::Base provides some clean
ways for you to express your input and expected output data, so you can
spend your
time focusing on that rather than your code scaffolding.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING LICENSE README
%changelog