[Koha-bugs] [Bug 13438] Convert normarc framework plugins to new style (see also 10480)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 22 08:20:56 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13438

--- Comment #7 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Thanks Magnus for testing.
You discovered that prove does not like extra arguments.
"Cannot detect source of '--incl'! at
/usr/share/perl/5.14/TAP/Parser/IteratorFactory.pm line 263"

Prove provides a way (I learned now too):
It is possible to supply arguments to tests. To do so separate them from
prove's own arguments with the arisdottle, '::'. For example prove -v
t/mytest.t :: --url http://example.com

Also note that the overwhelming number of uninitialized warnings was only
hidden by disabling the warnings pragma. If you would only add "use warnings"
in the plugins before this patch and run prove, you will see them all. So now
we see those warnings, we should do something about them.. (I already have a
report opened for that.)

prove t/db_dependent/FrameworkPlugin.t :: --incl
cataloguing/value_builder/normarc_*.pl
t/db_dependent/FrameworkPlugin.t .. 1/5
[LOTs of uninitialized warnings]
t/db_dependent/FrameworkPlugin.t .. ok
All tests successful.
Files=1, Tests=5,  2 wallclock secs ( 0.03 usr  0.01 sys +  2.08 cusr  0.10
csys =  2.22 CPU)
Result: PASS

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list