Bugzilla – Attachment 2716 Details for
Bug 5327
Omnibus for unit tests required for all C4 modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds some basic unit tests
0001-Bug-5327-Add-basic-unit-tests-to-some-C4-modules.patch (text/plain), 11.93 KB, created by
Katrin Fischer
on 2010-10-30 03:48:22 UTC
(
hide
)
Description:
adds some basic unit tests
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2010-10-30 03:48:22 UTC
Size:
11.93 KB
patch
obsolete
>From 38fc03e9e450215ccf6511ba9440a39d630cb629 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sat, 30 Oct 2010 05:44:06 +0200 >Subject: [PATCH] Bug 5327: Add basic unit tests to some C4 modules >Content-Type: text/plain; charset="utf-8" > >--- > t/Auth_with_cas.t | 14 ++++++++++++++ > t/AuthoritiesMarc.t | 14 ++++++++++++++ > t/Biblio.t | 14 ++++++++++++++ > t/Breeding.t | 14 ++++++++++++++ > t/Category.t | 14 ++++++++++++++ > t/ClassSortRoutine.t | 14 ++++++++++++++ > t/ClassSource.t | 14 ++++++++++++++ > t/Contract.t | 14 ++++++++++++++ > t/Creators.t | 14 ++++++++++++++ > t/Csv.t | 14 ++++++++++++++ > t/Heading.t | 14 ++++++++++++++ > t/ItemCirculationAlertPreference.t | 14 ++++++++++++++ > t/Items.t | 14 ++++++++++++++ > t/Letters.t | 14 ++++++++++++++ > t/Log.t | 14 ++++++++++++++ > t/Matcher.t | 14 ++++++++++++++ > t/Members.t | 14 ++++++++++++++ > t/Message.t | 14 ++++++++++++++ > t/NewsChannels.t | 14 ++++++++++++++ > t/Overdues.t | 14 ++++++++++++++ > t/Patroncards.t | 14 ++++++++++++++ > t/Print.t | 14 ++++++++++++++ > t/Reports.t | 14 ++++++++++++++ > t/Ris.t | 14 ++++++++++++++ > t/RotatingCollections.t | 14 ++++++++++++++ > t/SMS.t | 14 ++++++++++++++ > t/Tags.t | 14 ++++++++++++++ > t/UploadedFile.t | 14 ++++++++++++++ > 28 files changed, 392 insertions(+), 0 deletions(-) > create mode 100755 t/Auth_with_cas.t > create mode 100755 t/AuthoritiesMarc.t > create mode 100755 t/Biblio.t > create mode 100755 t/Breeding.t > create mode 100755 t/Category.t > create mode 100755 t/ClassSortRoutine.t > create mode 100755 t/ClassSource.t > create mode 100755 t/Contract.t > create mode 100755 t/Creators.t > create mode 100755 t/Csv.t > create mode 100755 t/Heading.t > create mode 100755 t/ItemCirculationAlertPreference.t > create mode 100755 t/Items.t > create mode 100755 t/Letters.t > create mode 100755 t/Log.t > create mode 100755 t/Matcher.t > create mode 100755 t/Members.t > create mode 100755 t/Message.t > create mode 100755 t/NewsChannels.t > create mode 100755 t/Overdues.t > create mode 100755 t/Patroncards.t > create mode 100755 t/Print.t > create mode 100755 t/Reports.t > create mode 100755 t/Ris.t > create mode 100755 t/RotatingCollections.t > create mode 100755 t/SMS.t > create mode 100755 t/Tags.t > create mode 100755 t/UploadedFile.t > >diff --git a/t/Auth_with_cas.t b/t/Auth_with_cas.t >new file mode 100755 >index 0000000..77dd21f >--- /dev/null >+++ b/t/Auth_with_cas.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Auth_with_cas'); >+} >+ >diff --git a/t/AuthoritiesMarc.t b/t/AuthoritiesMarc.t >new file mode 100755 >index 0000000..d59b43b >--- /dev/null >+++ b/t/AuthoritiesMarc.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::AuthoritiesMarc'); >+} >+ >diff --git a/t/Biblio.t b/t/Biblio.t >new file mode 100755 >index 0000000..c186058 >--- /dev/null >+++ b/t/Biblio.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Biblio'); >+} >+ >diff --git a/t/Breeding.t b/t/Breeding.t >new file mode 100755 >index 0000000..e672bf1 >--- /dev/null >+++ b/t/Breeding.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Breeding'); >+} >+ >diff --git a/t/Category.t b/t/Category.t >new file mode 100755 >index 0000000..6c251ea >--- /dev/null >+++ b/t/Category.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Category'); >+} >+ >diff --git a/t/ClassSortRoutine.t b/t/ClassSortRoutine.t >new file mode 100755 >index 0000000..be379a2 >--- /dev/null >+++ b/t/ClassSortRoutine.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::ClassSortRoutine'); >+} >+ >diff --git a/t/ClassSource.t b/t/ClassSource.t >new file mode 100755 >index 0000000..ffb3104 >--- /dev/null >+++ b/t/ClassSource.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::ClassSource'); >+} >+ >diff --git a/t/Contract.t b/t/Contract.t >new file mode 100755 >index 0000000..87df569 >--- /dev/null >+++ b/t/Contract.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Contract'); >+} >+ >diff --git a/t/Creators.t b/t/Creators.t >new file mode 100755 >index 0000000..5264d32 >--- /dev/null >+++ b/t/Creators.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Creators'); >+} >+ >diff --git a/t/Csv.t b/t/Csv.t >new file mode 100755 >index 0000000..068f094 >--- /dev/null >+++ b/t/Csv.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Csv'); >+} >+ >diff --git a/t/Heading.t b/t/Heading.t >new file mode 100755 >index 0000000..d780944 >--- /dev/null >+++ b/t/Heading.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Heading'); >+} >+ >diff --git a/t/ItemCirculationAlertPreference.t b/t/ItemCirculationAlertPreference.t >new file mode 100755 >index 0000000..d937c26 >--- /dev/null >+++ b/t/ItemCirculationAlertPreference.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::ItemCirculationAlertPreference'); >+} >+ >diff --git a/t/Items.t b/t/Items.t >new file mode 100755 >index 0000000..c19cdc7 >--- /dev/null >+++ b/t/Items.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Items'); >+} >+ >diff --git a/t/Letters.t b/t/Letters.t >new file mode 100755 >index 0000000..603e37e >--- /dev/null >+++ b/t/Letters.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Letters'); >+} >+ >diff --git a/t/Log.t b/t/Log.t >new file mode 100755 >index 0000000..eca6b9c >--- /dev/null >+++ b/t/Log.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Log'); >+} >+ >diff --git a/t/Matcher.t b/t/Matcher.t >new file mode 100755 >index 0000000..f374877 >--- /dev/null >+++ b/t/Matcher.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Matcher'); >+} >+ >diff --git a/t/Members.t b/t/Members.t >new file mode 100755 >index 0000000..bbcfc95 >--- /dev/null >+++ b/t/Members.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Members'); >+} >+ >diff --git a/t/Message.t b/t/Message.t >new file mode 100755 >index 0000000..7641d57 >--- /dev/null >+++ b/t/Message.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Message'); >+} >+ >diff --git a/t/NewsChannels.t b/t/NewsChannels.t >new file mode 100755 >index 0000000..bbcaab1 >--- /dev/null >+++ b/t/NewsChannels.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::NewsChannels'); >+} >+ >diff --git a/t/Overdues.t b/t/Overdues.t >new file mode 100755 >index 0000000..62725cb >--- /dev/null >+++ b/t/Overdues.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Overdues'); >+} >+ >diff --git a/t/Patroncards.t b/t/Patroncards.t >new file mode 100755 >index 0000000..60a7237 >--- /dev/null >+++ b/t/Patroncards.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Patroncards'); >+} >+ >diff --git a/t/Print.t b/t/Print.t >new file mode 100755 >index 0000000..1a05304 >--- /dev/null >+++ b/t/Print.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Print'); >+} >+ >diff --git a/t/Reports.t b/t/Reports.t >new file mode 100755 >index 0000000..667cb8c >--- /dev/null >+++ b/t/Reports.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Reports'); >+} >+ >diff --git a/t/Ris.t b/t/Ris.t >new file mode 100755 >index 0000000..30157e4 >--- /dev/null >+++ b/t/Ris.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Ris'); >+} >+ >diff --git a/t/RotatingCollections.t b/t/RotatingCollections.t >new file mode 100755 >index 0000000..10a4e20 >--- /dev/null >+++ b/t/RotatingCollections.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::RotatingCollections'); >+} >+ >diff --git a/t/SMS.t b/t/SMS.t >new file mode 100755 >index 0000000..d88633f >--- /dev/null >+++ b/t/SMS.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::SMS'); >+} >+ >diff --git a/t/Tags.t b/t/Tags.t >new file mode 100755 >index 0000000..83b3c9b >--- /dev/null >+++ b/t/Tags.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::Tags'); >+} >+ >diff --git a/t/UploadedFile.t b/t/UploadedFile.t >new file mode 100755 >index 0000000..dd01e1b >--- /dev/null >+++ b/t/UploadedFile.t >@@ -0,0 +1,14 @@ >+#!/usr/bin/perl >+# >+# This Koha test module is a stub! >+# Add more tests here!!! >+ >+use strict; >+use warnings; >+ >+use Test::More tests => 1; >+ >+BEGIN { >+ use_ok('C4::UploadedFile'); >+} >+ >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5327
:
2716
|
2726
|
5485
|
6236
|
6237
|
6373
|
6560
|
6561
|
6562
|
6563
|
6613
|
6614
|
6616
|
6620
|
6621
|
6622
|
6643
|
6650
|
6655
|
6679
|
6681
|
6682
|
6683
|
6726
|
6727
|
6728
|
6729
|
6730
|
6731
|
6732
|
6795
|
6799
|
6805
|
6819
|
6826
|
6827
|
6828
|
6834
|
7179
|
7180
|
7181
|
7182
|
7183
|
7184
|
7185
|
7186
|
7187
|
7188
|
7189
|
7190
|
7191
|
7192
|
7194
|
7195
|
7203
|
7206
|
7208
|
7209
|
7220
|
7221
|
7222
|
7223
|
7224
|
7225
|
7226
|
7227
|
7228
|
7229
|
7230
|
7231
|
7232
|
7233
|
7234
|
7235
|
7236
|
7237
|
7238
|
7239
|
7240
|
7241
|
7242
|
7400
|
7402
|
7403
|
7405
|
7573
|
7592
|
7593
|
7594
|
9897
|
10234
|
10616
|
10656
|
10659
|
10660
|
10661
|
10680
|
11141
|
11186
|
11212
|
11213
|
11278
|
11279
|
11280
|
11281
|
11339
|
11340
|
11341
|
11440
|
11467
|
11469
|
11470
|
11471
|
11472
|
11473
|
11500
|
11503
|
11505
|
11506
|
11633
|
11762
|
11763
|
11764
|
11765
|
11846
|
11985
|
11993
|
12002
|
12003