Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker compose test environment #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

solocommand
Copy link

For those of us who may not have a readily available local test environment, this PR adds php5.6 test runner using Docker Compose.

To execute the standard test suite: docker-compose run test
To execute the end to end test suite: docker-compose run e2e

Example output:

$ docker-compose run e2e
> __exec_command: phpunit '-c' 'phpunit.e2e.xml' '-v'
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.

Runtime:       PHP 5.6.40 with Xdebug 2.5.5
Configuration: /app/phpunit.e2e.xml

........W......................................................  63 / 126 ( 50%)
..........SSSSS......S.S.S..S..SS...S....S.SS..SS..........S... 126 / 126 (100%)


Time: 1.08 minutes, Memory: 22.00MB

There was 1 warning:

1) Essence\EssenceTest::testCrawlUrl
PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead

--

There were 18 skipped tests:

1) ProvidersTest::testExtract with data set #1 ('500px', 'https://500px.com/photo/38873...azhiqi', 'title', 'oo')
Unable to extract info from 'https://500px.com/photo/388736/oo-by-besim-mazhiqi'

/app/tests/e2e/ProvidersTest.php:49

2) ProvidersTest::testExtract with data set #2 ('App.net', 'https://alpha.app.net/chrifpa...hoto/1', 'authorName', '@chrifpa')
Unable to extract info from 'https://alpha.app.net/chrifpa/post/33532003/photo/1'

/app/tests/e2e/ProvidersTest.php:49

3) ProvidersTest::testExtract with data set #3 ('Bambuser', 'http://bambuser.com/v/4740575', 'authorName', 'dancole')
Unable to extract info from 'http://bambuser.com/v/4740575'

/app/tests/e2e/ProvidersTest.php:49

4) ProvidersTest::testExtract with data set #4 ('Bandcamp', 'http://jeanjean.bandcamp.com/...-phant', 'providerName', 'bandcamp')
The value of 'providerName' ('@bandcamp') is not as expected ('bandcamp') when trying to extract info from 'http://jeanjean.bandcamp.com/track/coquin-l-l-phant'

/app/tests/e2e/ProvidersTest.php:59

5) ProvidersTest::testExtract with data set #5 ('CanalPlus', 'http://www.canalplus.fr/c-div...067507', 'providerName', 'Canalplus.fr')
The value of 'providerName' ('myCANAL') is not as expected ('Canalplus.fr') when trying to extract info from 'http://www.canalplus.fr/c-divertissement/c-le-grand-journal/pid6831-connasse.html?vid=1067507'

/app/tests/e2e/ProvidersTest.php:59

6) ProvidersTest::testExtract with data set #12 ('DailyMile', 'http://www.dailymile.com/peop...297912', 'authorName', 'Ben W.')
Unable to extract info from 'http://www.dailymile.com/people/ben/entries/29297912'

/app/tests/e2e/ProvidersTest.php:49

7) ProvidersTest::testExtract with data set #14 ('Dai.ly', 'http://dai.ly/x2091k1', 'authorName', 'Golden Moustache')
Unable to extract info from 'http://dai.ly/x2091k1'

/app/tests/e2e/ProvidersTest.php:49

8) ProvidersTest::testExtract with data set #16 ('Dipity', 'http://www.dipity.com/multime...rdoch/', 'authorName', 'multimediajournalism')
Unable to extract info from 'http://www.dipity.com/multimediajournalism/30-days-that-destroyed-the-House-of-Murdoch/'

/app/tests/e2e/ProvidersTest.php:49

9) ProvidersTest::testExtract with data set #19 ('Edocr', 'http://www.edocr.com/doc/1766...-guide', 'authorName', 'info_769')
Unable to extract info from 'http://www.edocr.com/doc/176612/saint-petersburg-travellers-guide'

/app/tests/e2e/ProvidersTest.php:49

10) ProvidersTest::testExtract with data set #22 ('FunnyOrDie', 'http://www.funnyordie.com/vid...ey-you', 'title', 'Hey You')
Unable to extract info from 'http://www.funnyordie.com/videos/75d77b0795/hey-you'

/app/tests/e2e/ProvidersTest.php:49

11) ProvidersTest::testExtract with data set #23 ('HowCast', 'http://www.howcast.com/videos...ecipes', 'title', 'How to Make an Alabama Slamme...owcast')
The value of 'title' ('') is not as expected ('How to Make an Alabama Slammer | Howcast') when trying to extract info from 'http://www.howcast.com/videos/512882-How-to-Make-an-Alabama-Slammer-Shots-Recipes'

/app/tests/e2e/ProvidersTest.php:59

12) ProvidersTest::testExtract with data set #27 ('Ifttt', 'https://ifttt.com/recipes/987...-500px', 'title', 'Instagram to 500px')
The value of 'title' ('Automatically share your Instagram posts on 500px') is not as expected ('Instagram to 500px') when trying to extract info from 'https://ifttt.com/recipes/98797-instagram-to-500px'

/app/tests/e2e/ProvidersTest.php:59

13) ProvidersTest::testExtract with data set #32 ('Meetup', 'http://www.meetup.com/France-...Group/', 'title', 'France HTML5 User Group')
The value of 'title' ('Frontend Developer Meetup Paris') is not as expected ('France HTML5 User Group') when trying to extract info from 'http://www.meetup.com/France-HTML5-User-Group/'

/app/tests/e2e/ProvidersTest.php:59

14) ProvidersTest::testExtract with data set #34 ('Mobypicture', 'http://www.mobypicture.com/us...242008', 'authorName', 'Mathys van Abbe')
Unable to extract info from 'http://www.mobypicture.com/user/mathys/view/242008'

/app/tests/e2e/ProvidersTest.php:49

15) ProvidersTest::testExtract with data set #35 ('Official.fm', 'http://www.official.fm/playlists/U2CP', 'authorName', 'Cameo Gallery')
Unable to extract info from 'http://www.official.fm/playlists/U2CP'

/app/tests/e2e/ProvidersTest.php:49

16) ProvidersTest::testExtract with data set #38 ('Rdio', 'https://www.rdio.com/artist/S...known/', 'title', 'Superunknown')
Unable to extract info from 'https://www.rdio.com/artist/Soundgarden/album/Superunknown/'

/app/tests/e2e/ProvidersTest.php:49

17) ProvidersTest::testExtract with data set #39 ('Screenr', 'http://www.screenr.com/A7ks', 'authorName', 'elearning')
Unable to extract info from 'http://www.screenr.com/A7ks'

/app/tests/e2e/ProvidersTest.php:49

18) ProvidersTest::testExtract with data set #50 ('Vine', 'https://vine.co/v/MdnPb5ivU52', 'description', 'Vine by Renee Derr')
The value of 'description' ('') is not as expected ('Vine by Renee Derr') when trying to extract info from 'https://vine.co/v/MdnPb5ivU52'

/app/tests/e2e/ProvidersTest.php:59

WARNINGS!
Tests: 126, Assertions: 145, Warnings: 1, Skipped: 18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant