Bug 19227: Reduce the number of tests run by 00-merge-conflict-markers.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 31 Aug 2017 14:47:11 +0000 (11:47 -0300)
committerMason James <mtj@kohaaloha.com>
Tue, 24 Oct 2017 03:42:10 +0000 (16:42 +1300)
commit4ff8245ed2b14b91e2a47b06606dcf5eb97c1b2e
treeaf96b1fea8eaf6398ad787d76486ad9fb1abe73e
parenta44af993d0aa32cc8852125afdfcc2fa12e2a274
Bug 19227: Reduce the number of tests run by 00-merge-conflict-markers.t

The number of tests on jenkins is sometimes confusing:

https://jenkins.koha-community.org/job/Koha_Master_D8/lastCompletedBuild/testReport/(root)/t_00_merge_conflict_markers_t/

shows that 00-merge-conflict-markers.t ran 10,751 tests, 124 less than
the previous run. However 124 files have not been removed from the
codebase!

I suggest to count only 1 test for all files.

Moreover files from blib and cover_db are counted, they should be
excluded.

Test plan:
  prove t/00-merge-conflict-markers.t
must return green

echo ">>>>>>>" >> mainpage.pl
and run the test again
It should now fail

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Works as advertised.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/00-merge-conflict-markers.t