From a90a4ad54b6ff4be5d9fe08f6c922d0dccb29287 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Mar 2025 15:49:11 +0100 Subject: [PATCH] Bug 39325: Add test We certainly want to improve this test and run it in parallel. --- xt/author/codespell.t | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 xt/author/codespell.t diff --git a/xt/author/codespell.t b/xt/author/codespell.t new file mode 100644 index 00000000000..8f30aba5282 --- /dev/null +++ b/xt/author/codespell.t @@ -0,0 +1,20 @@ +#!/usr/bin/perl +use Modern::Perl; +use Test::PerlTidy; +use Test::More; + +my @files; +push @files, qx{git ls-files '*.pl' '*.PL' '*.pm' '*.t'}; +push @files, qx{git ls-files svc opac/svc}; # Files without extension +push @files, qx{git ls-files '*.tt' '*.inc'}; +push @files, + qx{git ls-files '*.js' '*.ts' '*.vue' :(exclude)koha-tmpl/intranet-tmpl/lib :(exclude)koha-tmpl/opac-tmpl/lib}; + +plan tests => scalar @files; + +for my $file (@files) { + chomp $file; + my $output = qx{codespell -d $file}; + chomp $output; + is( $output, q{} ); +} -- 2.34.1