Tips and such - USGCRP/gcis GitHub Wiki
Lessons Learned
Morbo
Running /bin/tuba
under morbo
conflicts with the ./Build test
paradigm. It appears to create a race condition where, from within the test suite, Mojolicious cannot execute shell commands. This specifically affects the test t/005_turtle.t
in calls to rapper, which will randomly fail, causing warnings and failed tests. The work-around is to temporarily shut down morbo when running affected tests.
Note that running under hypnotoad
is not affected by this issue.
Testing
Database
To temporarily point Build to a different (existing) database for testing, issue
perl Build.PL --database_options name=<database name>
Note that doing the above will allow you to testdb
patches against a different database, but will cause your test
to fail with the error:
FATAL: database "gcis" does not exist at /home/ubuntu/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/DBIx/Connector.pm