run_backend_tests.pl - Run Yancy tests with a configured backend
# Run all tests for all backends ./share/run_backend_tests.pl # Run all tests for one or more backends ./share/run_backend_tests.pl <backend>... # Run one or more tests for all backends ./share/run_backend_tests.pl -- <test>... # Run one or more tests for one or more backends ./share/run_backend_tests.pl <backend>... -- <test>...
This script helps to run Yancy tests under different backends to ensure all backends have the same functionality.
To run the Postgres tests, you must have a running Postgres server and the current user must be authorized to access it without a password.
To run the MySQL tests, you must have a running MySQL server and the current user must be authorized to access it without a password.
To run the SQLite and DBIx::Class tests, you simply must have a /tmp folder.
/tmp
A backend to test. One or more of: memory, sqlite, mysql, pg, dbic. Defaults to testing all backends, with the memory backend first.
memory
sqlite
mysql
pg
dbic
A test file to run. Can be one or more paths to test directories or files in the t directory. The prove program is run recursively (with the -r flag), so directories will be recursed. Defaults to t, which will run all the tests.
t
prove
-r
No options at this time.
Yancy
To install Yancy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yancy
CPAN shell
perl -MCPAN -e shell install Yancy
For more information on module installation, please visit the detailed CPAN module installation guide.