2011-06-26 18:20:14 +00:00
|
|
|
#
|
2013-10-19 09:30:42 +00:00
|
|
|
# spec file for package perl-TAP-Formatter-JUnit
|
|
|
|
#
|
2025-02-10 20:52:46 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-10-19 09:30:42 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-08-25 16:09:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-26 18:20:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define cpan_name TAP-Formatter-JUnit
|
2021-08-25 16:09:23 +00:00
|
|
|
Name: perl-TAP-Formatter-JUnit
|
2025-02-10 20:52:46 +00:00
|
|
|
Version: 0.170.0
|
2013-10-19 09:30:42 +00:00
|
|
|
Release: 0
|
2025-02-10 20:52:46 +00:00
|
|
|
# 0.17 -> normalize -> 0.170.0
|
|
|
|
%define cpan_version 0.17
|
2021-08-25 16:09:23 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-05-11 16:23:47 +00:00
|
|
|
Summary: Harness output delegate for JUnit output
|
2021-08-25 16:09:23 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-29 19:54:17 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/%{cpan_name}-%{cpan_version}.tar.gz
|
2021-08-25 16:09:23 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:25 +02:00
|
|
|
Source100: README.md
|
2013-10-19 09:30:42 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-07-21 12:44:08 +00:00
|
|
|
BuildRequires: perl(File::Slurp)
|
2021-08-25 16:09:23 +00:00
|
|
|
BuildRequires: perl(IO::Scalar)
|
2015-07-21 12:44:08 +00:00
|
|
|
BuildRequires: perl(IPC::Run)
|
|
|
|
BuildRequires: perl(Moose)
|
|
|
|
BuildRequires: perl(MooseX::NonMoose)
|
2021-08-25 16:09:23 +00:00
|
|
|
BuildRequires: perl(TAP::Harness) >= 3.12
|
2025-02-10 20:52:46 +00:00
|
|
|
BuildRequires: perl(Test::DiagINC) >= 0.2.0
|
2021-08-25 16:09:23 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2015-07-21 12:44:08 +00:00
|
|
|
BuildRequires: perl(Test::XML)
|
|
|
|
BuildRequires: perl(XML::Generator)
|
2021-08-25 16:09:23 +00:00
|
|
|
BuildRequires: perl(namespace::clean)
|
2022-05-11 16:23:47 +00:00
|
|
|
BuildRequires: perl(version)
|
2015-07-21 12:44:08 +00:00
|
|
|
Requires: perl(File::Slurp)
|
|
|
|
Requires: perl(Moose)
|
|
|
|
Requires: perl(MooseX::NonMoose)
|
2021-08-25 16:09:23 +00:00
|
|
|
Requires: perl(TAP::Harness) >= 3.12
|
2015-07-21 12:44:08 +00:00
|
|
|
Requires: perl(XML::Generator)
|
2021-08-25 16:09:23 +00:00
|
|
|
Requires: perl(namespace::clean)
|
2024-07-29 19:54:17 +00:00
|
|
|
Provides: perl(TAP::Formatter::JUnit) = %{version}
|
|
|
|
Provides: perl(TAP::Formatter::JUnit::Result)
|
|
|
|
Provides: perl(TAP::Formatter::JUnit::Session)
|
|
|
|
%undefine __perllib_provides
|
2011-06-26 18:20:14 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2021-08-25 16:09:23 +00:00
|
|
|
*This code is currently in alpha state and is subject to change.*
|
|
|
|
|
|
|
|
'TAP::Formatter::JUnit' provides JUnit output formatting for
|
|
|
|
'TAP::Harness'.
|
|
|
|
|
|
|
|
By default (e.g. when run with _prove_), the _entire_ test suite is
|
|
|
|
gathered together into a single JUnit XML document, which is then displayed
|
|
|
|
on 'STDOUT'. You can, however, have individual JUnit XML files dumped for
|
|
|
|
each individual test, by setting 'PERL_TEST_HARNESS_DUMP_TAP' to a
|
|
|
|
directory that you would like the JUnit XML dumped to. Note, that this will
|
|
|
|
*also* cause 'TAP::Harness' to dump the original TAP output into that
|
|
|
|
directory as well (but IMHO that's ok as you've now got the data in two
|
|
|
|
parseable formats).
|
2011-06-26 18:20:14 +00:00
|
|
|
|
2021-08-25 16:09:23 +00:00
|
|
|
Timing information is included in the JUnit XML, _if_ you specified
|
|
|
|
'--timer' when you ran _prove_.
|
|
|
|
|
|
|
|
In standard use, a "passing TODO" is treated as failure conditions (and is
|
|
|
|
reported as such in the generated JUnit). If you wish to treat these as a
|
|
|
|
"pass" and not a "fail" condition, setting 'ALLOW_PASSING_TODOS' in your
|
|
|
|
environment will turn these into pass conditions.
|
|
|
|
|
|
|
|
The JUnit output generated is partial to being grokked by Hudson
|
|
|
|
(http://hudson.dev.java.net/). That's the build tool I'm using at the
|
|
|
|
moment and needed to be able to generate JUnit output for.
|
2011-06-26 18:20:14 +00:00
|
|
|
|
|
|
|
%prep
|
2025-02-10 20:52:46 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2024-07-29 19:54:17 +00:00
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-06-26 18:20:14 +00:00
|
|
|
|
|
|
|
%build
|
2021-08-25 16:09:23 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-06-26 18:20:14 +00:00
|
|
|
|
|
|
|
%check
|
2021-08-25 16:09:23 +00:00
|
|
|
make test
|
2011-06-26 18:20:14 +00:00
|
|
|
|
|
|
|
%install
|
2021-08-25 16:09:23 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-06-26 18:20:14 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-08-25 16:09:23 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-06-26 18:20:14 +00:00
|
|
|
|
|
|
|
%changelog
|