[Koha-bugs] [Bug 13849] Introduce acceptance tests with cucumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 17 10:43:09 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13849

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 36940
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36940&action=edit
Bug 13849: POC - my first Cucumber contact

During the hackfest 15 in Marseille, akafred present us how he
integrated acceptance tests in Koha using Cucumber.

With this patch, I would like to get other developer opinions on the
usefulness of this kind of tests for the Koha software.

To test:
0/
* Install the selenium server (have a look at bug 13691)
* Install libtest-bdd-cucumber-perl (pkg) and App::pherkin (cpan)
* Edit t/db_dependent/cucumber/features/step_definitions/basic_steps.pl
and fill the login and password of a superlibrarian user.
Maybe you should also change the address of the selenium server (search
for 'remote_server_addr').

1/ Start the selenium server and launch the tests:
$ cd t/db_dependent/cucumber
$ pherkin
  or
$ prove tests.t

Even if the second method is recommended in
Test::BDD::Cucumber::Manual::Integration, I prefer the first one
Indeed, the tests will pass if a step is not defined (maybe something is
wrong somewhere...).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list