# # spec file for package perl-TAP-Formatter-HTML # # 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-TAP-Formatter-HTML Version: 0.11 Release: 0 %define cpan_name TAP-Formatter-HTML Summary: TAP Test Harness output delegate for html output License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/TAP-Formatter-HTML/ Source0: http://www.cpan.org/authors/id/S/SP/SPURKIS/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Temp) >= 0.17 BuildRequires: perl(Module::Build) >= 0.380000 BuildRequires: perl(TAP::Parser) >= 3.10 BuildRequires: perl(Template) >= 2.14 BuildRequires: perl(Test::Harness) >= 3.17 BuildRequires: perl(URI) >= 1.35 BuildRequires: perl(accessors) >= 0.02 Requires: perl(File::Temp) >= 0.17 Requires: perl(TAP::Parser) >= 3.10 Requires: perl(Template) >= 2.14 Requires: perl(Test::Harness) >= 3.17 Requires: perl(URI) >= 1.35 Requires: perl(accessors) >= 0.02 %{perl_requires} %description This module provides HTML output formatting for the TAP::Harness manpage (a replacement for the Test::Harness manpage. It is largely based on ideas from the TAP::Test::HTMLMatrix manpage (which was built on the Test::Harness manpage and thus had a few limitations - hence this module). For sample output, see: the http://www.spurkis.org/TAP-Formatter-HTML/test-output.html manpage This module is targeted at all users of automated test suites. It's meant to make reading test results easier, giving you a visual summary of your test suite and letting you drill down into individual failures (which will hopefully make testing more likely to happen at your organization ;-). The design goals are: * * _easy to use_ Once you've got your test report, it should be obvious how to use it. * * _helpful_ It should be helpful by pointing out _where_ & _why_ your test suite is breaking. If you've written your tests well, it should give you enough info to start tracking down the issue. * * _easy to install_ Eg: should be a clean install from CPAN, and you shouldn't need to modify your existing test suite to get up & running, though _you will need to stop using the Test::Harness manpage unfortunately_. * * _work out of the box_ You shouldn't need to do any custom-coding to get it working - the default configuration & templates should be enough to get started with. Once installed it should be a matter of running: % prove -m -Q --formatter=TAP::Formatter::HTML >output.html From your project's home dir, and opening the resulting file. * * _easy to configure_ You should be able to configure & customize it to suit your needs. As such, css, javascript and templates are all configurable. %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes examples README Todo %changelog