nothingworksinc / ticketbeast

Back to the lesson videos:
https://course.testdrivenlaravel.com/lessons
552 stars 11 forks source link

[Request] Continuous Integration #57

Open jkniest opened 7 years ago

jkniest commented 7 years ago

Hey,

I just wanted to ask if some tutorials for "continuous integration" are planned. (Especially travis). I found it complicated to run phpunit and laravel dusk tests in one project.

Have a nice day, Jordan

adamwathan commented 7 years ago

Hey Jordan good idea, I'll get a lesson in covering that.

jkniest commented 7 years ago

Cool, thanks

guitarbien commented 7 years ago

I've set travis-ci with : my ticketbeats travis , it worked fine until today 😅 . I want to add dusk browser testing but I got timeout failure :

1) Tests\Browser\PromoterLoginTest::test_login_success_with_valid_account_password
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}
Operation timed out after 30001 milliseconds with 0 bytes received
/home/travis/build/guitarbien/ticketbeats/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:286
/home/travis/build/guitarbien/ticketbeats/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:126
/home/travis/build/guitarbien/ticketbeats/tests/DuskTestCase.php:32
/home/travis/build/guitarbien/ticketbeats/vendor/laravel/dusk/src/TestCase.php:209
/home/travis/build/guitarbien/ticketbeats/vendor/laravel/framework/src/Illuminate/Support/helpers.php:652
/home/travis/build/guitarbien/ticketbeats/vendor/laravel/dusk/src/TestCase.php:210
/home/travis/build/guitarbien/ticketbeats/vendor/laravel/dusk/src/TestCase.php:116
/home/travis/build/guitarbien/ticketbeats/vendor/laravel/dusk/src/TestCase.php:88
/home/travis/build/guitarbien/ticketbeats/tests/Browser/PromoterLoginTest.php:32

@adamwathan And I also curious how to combine both phpunit and dusk coverage report in coveralls.io

Thanks !!

svenluijten commented 7 years ago

FYI, that gist contains your Slack secret, might want to re-roll your credentials. 🙂

drbyte commented 7 years ago

@svenluijten no, that's an encrypted form of the Slack credentials, using the Travis gem to store it in a form that can be left in public VCS repos.

Ref: https://docs.travis-ci.com/user/encryption-keys/

svenluijten commented 7 years ago

@drbyte Ah, gotcha. I didn't know that!

gocanto commented 7 years ago

Awersome!!!