Skip to content

Commit

Permalink
Setup tests to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Sep 14, 2022
1 parent 7cf5dda commit b66120a
Show file tree
Hide file tree
Showing 6 changed files with 3,199 additions and 31 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor
vendor
coverage
14 changes: 13 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,25 @@
"scribu/scb-framework" : "dev-master@dev",
"psr/log" : "~1.0"
},
"require-dev" : {
"phpunit/phpunit": "^7",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts" : {
"test": "phpunit",
"test:watch": "phpunit-watcher watch < /dev/tty",
"test:coverage": "php -d xdebug.mode=coverage ./vendor/bin/phpunit --coverage-html coverage"
},
"autoload" : {
"classmap": ["lib"],
"files" : ["lib/runner.php", "lib/template.php"]
},
"config": {
"allow-plugins": {
"composer/installers": true
}
},
"_process-timeout-comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
"process-timeout": 0
}
}
Loading

0 comments on commit b66120a

Please sign in to comment.