[Koha-bugs] [Bug 15152] Refactor Guided Reports related tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 16 18:42:42 CET 2015


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

--- Comment #11 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #10)
> I need someone to send me a DB (or a way to create it) where I can reproduce
> the failure.

Here you go:
[To set the failure scenario]
$ vagrant up jessie
$ vagrant ssh jessie
$ sudo -s
$ mysql
> DROP DATABASE koha_kohadev; CREATE DATABASE koha_kohadev; \q
$ zcat /vagrant/koha_3_20_00.sql.gz | mysql koha_kohadev
$ exit
$ sudo koha-shell kohadev
$ cd kohaclone
$ cat /vagrant/reports_guided_sequence.txt | xargs prove

now run the tests:
$ prove t/db_dependent/Reports_Guided.t
=> FAIL: The tests fail like this:
kohadev-koha at kohadevbox:/home/vagrant/kohaclone$ prove
t/db_dependent/Reports_Guided.t 
t/db_dependent/Reports_Guided.t .. 3/18 
#   Failed test 'filter takes report id'
#   at t/db_dependent/Reports_Guided.t line 70.
#          got: '2'
#     expected: '1'
# Looks like you failed 1 test of 18.
t/db_dependent/Reports_Guided.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/18 subtests 

Test Summary Report
-------------------
t/db_dependent/Reports_Guided.t (Wstat: 256 Tests: 18 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
Files=1, Tests=18,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.86 cusr  0.39
csys =  1.29 CPU)
Result: FAIL

run them again
=> SUCCESS: They now pass (i.e. side effects).

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


More information about the Koha-bugs mailing list