Added postgres flags for testing and deps for cpanfile
This commit is contained in:
parent
5334d88a81
commit
65d509943c
2 changed files with 24 additions and 1 deletions
17
README.md
17
README.md
|
@ -5,3 +5,20 @@
|
|||
*Master:* [](https://travis-ci.org/Pear-Trading/Foodloop-Server)
|
||||
|
||||
*Development:* [](https://travis-ci.org/Pear-Trading/Foodloop-Server)
|
||||
|
||||
# Testing
|
||||
|
||||
To run the main test framework, first install all the dependencies, then run the tests:
|
||||
|
||||
```
|
||||
cpanm --installdeps .
|
||||
prove -lr
|
||||
```
|
||||
|
||||
To run the main framework against a PostgreSQL backend, assuming you have postgres installed, you will need some extra dependencies first:
|
||||
|
||||
```
|
||||
cpanm --installdeps . --with-feature postgres
|
||||
PEAR_TEST_PG=1 prove -lr
|
||||
```
|
||||
|
||||
|
|
8
cpanfile
8
cpanfile
|
@ -22,7 +22,13 @@ requires 'Module::Runtime';
|
|||
requires 'DBIx::Class::DeploymentHandler';
|
||||
requires 'DBIx::Class::Fixtures';
|
||||
|
||||
on 'schema-graph' => sub {
|
||||
feature 'schema-graph', 'Draw diagrams of Schema' => sub {
|
||||
requires 'GraphViz';
|
||||
requires 'SQL::Translator';
|
||||
};
|
||||
|
||||
feature 'postgres', 'PostgreSQL Support' => sub {
|
||||
requires 'DBD::Pg';
|
||||
requires 'Test::PostgreSQL';
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue