diff --git a/composer.json b/composer.json index 6d9e758..38ba656 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,14 @@ "nette/bootstrap": "~2.2", "nette/di": "~2.2", "nette/robot-loader": "~2.2", - "nette/tester": "~1.0" + "nette/tester": "^2" + }, + "scripts": { + "test": "tester tests -c tests/php-unix.ini", + "test-local": "tester tests -C" + }, + "scripts-descriptions": { + "test": "Run all tests using UNIX configuration.", + "test-local": "Run all tests using local PHP configuration." } } diff --git a/readme.md b/readme.md index 0a38450..f92ed3d 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,20 @@ Lean Mapper is a tiny ORM based on powerful [Dibi database abstraction library]( See [www.leanmapper.com](http://www.leanmapper.com) for more informations, usage examples and documentation. + +Contributions & Testing +------- + +The unit tests can be run using the following composer command:\ +`composer test` + +To use local PHP configuration, the following command can be used:\ +`composer test-local` + +> Note:\ +> json, pdo, tokenizer and sqlite3 PHP extensions are needed to run the tests. + + License -------