Programming
33 articles
How to test Firebase Analytics events in real time
iOS In Xcode, add the argument -FIRAnalyticsDebugEnabled in a scheme: Product => Scheme => Edit Scheme In the new window: Run => Arguments tab => add the argument in Arguments Passed On Launch Android Run the following ADB command in the terminal: Run the app, go to the Firebase Console to see your…
How to automatically run PHPUnit tests with Laravel and Homestead
During my previous developments, I used to run a custom script with grunt-contrib-watch that reran my PHPUnit tests each time I saved a PHP file. However Laravel comes with Laravel Mix. It is a useful tool, but it lacks (and will always lack) PHPUnit support. So I had to look for another solution…
First time using Laravel Dusk? Here are a few errors and blunders and how to fix them
Fiddling with Laravel Dusk for the first time, I had to install the package: I was still using Laravel 5.6 but the current dusk package was in version 5 which needed Laravel 5.7+. I checked Packagist and got a previous version. In my case it was: Great, now I can start writing awesome tests!…
How to create symbolic links via FTP
Spoiler: you cannot! In order to use Laravel File Storage utility, I had to create a symlink in the public folder pointing to a subfolder located in the... storage folder. That is nice and easy when you can ssh to your production server. However, it is a whole other story if you only have FTP…
Insert a line in the middle of an existing configuration file
Playing with Testing a new piece of software using a Vagrant box, I created a vagrant-install.sh in which I had to insert the line sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION inside an existing MySQL config file. I had to put it inside a specific section, so I targeted a line starting…
