https://github.com/diego3/telefonia
TDD, E2E, CI and REST - Web Project
https://github.com/diego3/telefonia
api-rest continuous-integration e2e-test tdd unit-testing
Last synced: 8 months ago
JSON representation
TDD, E2E, CI and REST - Web Project
- Host: GitHub
- URL: https://github.com/diego3/telefonia
- Owner: diego3
- Created: 2017-04-06T13:03:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T02:07:56.000Z (over 6 years ago)
- Last Synced: 2025-02-28T09:51:29.253Z (over 1 year ago)
- Topics: api-rest, continuous-integration, e2e-test, tdd, unit-testing
- Language: PHP
- Homepage:
- Size: 17.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/diego3/telefonia)
[](https://coveralls.io/github/diego3/telefonia)
First of all, in order to be able to run the phpunit tests you need to create the data base schema
Without that the tests will fail!
How to run the phpunit tests
===========
```bash
vendor/bin/phpunit app/api/tests --testdox
```
How to run the phpunit code coverage
===========
```bash
vendor/bin/phpunit app/api/tests --coverage-html ./phpcoverage
```
How to run the e2e Testing Local
==================
In the local development you will need to bring up the phantomjs
```bash
app/e2e/phantomjs --webdriver=4444
```
After that, you will need to start the php built in server
```bash
php -S 127.0.0.1:8542 -t app/api
```
Now you can use codeceptjs to run the tests
```bash
cd app/e2e
codeceptjs run --steps
```
npm install -g codeceptjs
npm install -g webdriverio
http://codenroll.it/acceptance-testing-with-codecept-js/
http://codecept.io/acceptance/