diff --git a/.gitattributes b/.gitattributes index fed922e..4e29cd8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ +spec/ export-ignore .editorconfig export-ignore .gitattributes export-ignore .gitignore export-ignore @@ -5,3 +6,5 @@ .travis.yml export-ignore CONTRIBUTING.md export-ignore CONDUCT.md export-ignore +phpspec.yml.ci export-ignore +phpspec.yml.dist export-ignore diff --git a/.gitignore b/.gitignore index d6a14f7..43913b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ vendor/ composer.lock +phpspec.yml diff --git a/composer.json b/composer.json index 9ea39d9..fbbec5b 100644 --- a/composer.json +++ b/composer.json @@ -17,14 +17,18 @@ "require": { "php": ">=5.4" }, + "require-dev": { + "phpspec/phpspec": "^2.2", + "henrikbjorn/phpspec-code-coverage" : "^1.0" + }, "autoload": { "psr-4": { "Http\\Boilerplate\\": "src/" } }, "scripts": { - "test": "", - "test-ci": "" + "test": "vendor/bin/phpspec run", + "test-ci": "vendor/bin/phpspec run -c phpspec.yml.ci" }, "extra": { "branch-alias": { diff --git a/phpspec.yml.ci b/phpspec.yml.ci new file mode 100644 index 0000000..c11229f --- /dev/null +++ b/phpspec.yml.ci @@ -0,0 +1,10 @@ +suites: + boilerplate_suite: + namespace: Http\Boilerplate + psr4_prefix: Http\Boilerplate +formatter.name: pretty +extensions: + - PhpSpec\Extension\CodeCoverageExtension +code_coverage: + format: clover + output: build/coverage.xml diff --git a/phpspec.yml.dist b/phpspec.yml.dist new file mode 100644 index 0000000..98cf127 --- /dev/null +++ b/phpspec.yml.dist @@ -0,0 +1,5 @@ +suites: + boilerplate_suite: + namespace: Http\Boilerplate + psr4_prefix: Http\Boilerplate +formatter.name: pretty