[libtest-bdd-cucumber-perl] 14/25: Extract "_run_tests" into separate method App::pherkin::run
Intrigeri
intrigeri at moszumanska.debian.org
Mon Apr 27 09:51:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository libtest-bdd-cucumber-perl.
commit c845bd541ae547409c542015de85cdb534a2fa19
Author: Tomas Pokorny <tnt at verotel.cz>
Date: Mon Apr 13 13:25:57 2015 +0000
Extract "_run_tests" into separate method App::pherkin::run
so that it is possible simple extend App::pherkin and
override "_run_tests" to run tests in parallel way.
---
lib/App/pherkin.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/App/pherkin.pm b/lib/App/pherkin.pm
index 98c4c92..a0dfcff 100644
--- a/lib/App/pherkin.pm
+++ b/lib/App/pherkin.pm
@@ -64,6 +64,12 @@ sub run {
Test::BDD::Cucumber::Loader->load( $features_path, $self->tag_scheme );
die "No feature files found in $features_path" unless @features;
+ return $self->_run_tests($executor, @features);
+}
+
+sub _run_tests {
+ my ( $self, $executor, @features ) = @_;
+
my $harness = $self->harness;
$harness->startup();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-bdd-cucumber-perl.git
More information about the Pkg-perl-cvs-commits
mailing list