Bugzilla – Attachment 49705 Details for
Bug 16173
db_structure.t shouldn't have a fixed number of tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16173: db_structure.t shouldn't have a fixed number of tests
Bug-16173-dbstructuret-shouldnt-have-a-fixed-numbe.patch (text/plain), 1.98 KB, created by
Mark Tompsett
on 2016-03-30 23:12:30 UTC
(
hide
)
Description:
Bug 16173: db_structure.t shouldn't have a fixed number of tests
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-03-30 23:12:30 UTC
Size:
1.98 KB
patch
obsolete
>From d95bafb6b811655f338b3e14fb717e28c7629efa Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@unc.edu.ar> >Date: Wed, 30 Mar 2016 12:46:30 -0300 >Subject: [PATCH] Bug 16173: db_structure.t shouldn't have a fixed number of > tests > >This patch makes db_structure.t more flexible regarding how many tests are run. >This is important because it would fail on each db structure change, masking potential >real problems. > >To test: >- Run > $ prove t/db_dependent/db_structure.t >=> FAIL: the number of tests ran doesn't match what is expected >- Apply the patch >- Run > $ prove t/db_dependent/db_structure.t >=> SUCCESS: Tests count is not an issue [1] >- Sign off > >[1] Right now the tests run successfuly, they might fail if a real bug is introduced >on the DB structure, in the meantime. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/db_structure.t | 23 ++++++++++++++++++++++- > 1 file changed, 22 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/db_structure.t b/t/db_dependent/db_structure.t >index 41e5f2e..25f574a 100644 >--- a/t/db_dependent/db_structure.t >+++ b/t/db_dependent/db_structure.t >@@ -1,6 +1,23 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ > use Modern::Perl; > >-use Test::More tests => 409; >+use Test::More; > use Koha::Database; > > my @modules = ( >@@ -41,3 +58,7 @@ for my $modules ( @modules ) { > } > } > } >+ >+done_testing(); >+ >+1; >-- >2.1.4
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 16173
:
49689
|
49705
|
49775