mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Make testing easier
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
*.bak
|
*.bak
|
||||||
/.idea
|
/.idea
|
||||||
|
/coverage_clover.xml
|
||||||
/phive.xml
|
/phive.xml
|
||||||
/tools
|
/tools
|
||||||
composer.lock
|
composer.lock
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -161,6 +161,18 @@ $csv->output('movies.csv', $data_array, $header, ',');
|
|||||||
|
|
||||||
For more complex examples, see the ``tests`` and `examples` directories.
|
For more complex examples, see the ``tests`` and `examples` directories.
|
||||||
|
|
||||||
|
## Test coverage
|
||||||
|
|
||||||
|
All tests are located in the `tests` directory. To execute tests, run the following commands:
|
||||||
|
|
||||||
|
````bash
|
||||||
|
composer install
|
||||||
|
composer run test
|
||||||
|
````
|
||||||
|
|
||||||
|
When pushing code to GitHub, tests will be executed using Travis CI. The relevant configuration is in the
|
||||||
|
file `.travis.yml`.
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* ParseCsv is based on the concept of [Ming Hong Ng][ming]'s [CsvFileParser][]
|
* ParseCsv is based on the concept of [Ming Hong Ng][ming]'s [CsvFileParser][]
|
||||||
|
|||||||
@@ -45,6 +45,11 @@
|
|||||||
"dev-master": "1.0.x-dev"
|
"dev-master": "1.0.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": [
|
||||||
|
"vendor/bin/phpunit -c tests tests --disallow-test-output --coverage-clover coverage_clover.xml --whitelist src"
|
||||||
|
]
|
||||||
|
},
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/parsecsv/parsecsv-for-php/issues",
|
"issues": "https://github.com/parsecsv/parsecsv-for-php/issues",
|
||||||
"source": "https://github.com/parsecsv/parsecsv-for-php"
|
"source": "https://github.com/parsecsv/parsecsv-for-php"
|
||||||
|
|||||||
Reference in New Issue
Block a user