Koha/t/lib/KohaTest
Galen Charlton 8645d38f41 test suite: allow skipping of expensive tests
Defined a function attribute for KohaTest and subclasses
called 'Expensive'.  When a test method has that attribute,
it is skipped unless the RUN_EXPENSIVE_TESTS environment
variable is true.

To mark a test method, expensive, do this:

sub test_foo : Tests(4) Expensive { ... }

To mark a whole class and its subclasses expensive,
define a SKIP_CLASS sub (with empty body) with the
Expensive attribute:

sub SKIP_CLASS : Expensive { }

Updated the t/Makefile so that 'make test' runs
nonexpensive tests, while 'make fulltest' runs both
cheap and expensive tests.

Marked KohaTest::Installer test class expensive.

Signed-off-by: Andrew Moore <andrew.moore@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-05-19 13:25:57 -05:00
..
Acquisition
Branch bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches 2008-05-12 15:07:17 -05:00
Calendar Bug 1953: adding tests and 2 corrections for C4::Calendar 2008-05-13 17:41:20 -05:00
ImportBatch
Installer fixed installer test 2008-05-12 15:07:12 -05:00
Members corrected base class of a test 2008-05-12 09:03:05 -05:00
Scripts bug 2087: test cases for misc/cronjobs/longoverdue.pl 2008-05-11 06:43:35 -05:00
Search bugfix - fix 'not' operator in NoZebra 2008-05-16 08:18:25 -05:00
Accounts.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Acquisition.pm
AuthoritiesMarc.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Biblio.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Branch.pm bug 1953: fixing potential SQL injection problems in C4::Branch::GetBranches 2008-05-12 15:07:17 -05:00
Breeding.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Calendar.pm Bug 1953: adding tests and 2 corrections for C4::Calendar 2008-05-13 17:41:20 -05:00
Circulation.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Dates.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
ImportBatch.pm
Installer.pm test suite: allow skipping of expensive tests 2008-05-19 13:25:57 -05:00
Log.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Members.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
NewsChannels.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Overdues.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Print.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Reserves.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Scripts.pm bug 2087: test cases for misc/cronjobs/longoverdue.pl 2008-05-11 06:43:35 -05:00
Search.pm
Serials.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Suggestions.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00
Z3950.pm bug 2088: test suite refactoring to deal with t/override_context_prefs.pm 2008-05-11 06:48:40 -05:00