Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Unit Testing in Symfony

So some context:

We use Symfony to load our assets (as we have quite a few dependencies (Underscore, Marionette, Backbone, .. etc) and we run Javascript unit tests, using Jasmine. So to run them within our CI server, we use PhantomJS to hit the spec Symfony route. The problem then comes with the speed of it being run in dev mode.

What options do we have running Jasmine tests properly (considering our dependencies are managed through a Symfony Twig template) through a CLI tool rather than hitting them via a URL?

like image 950
Scott Warren Avatar asked Jun 23 '26 13:06

Scott Warren


1 Answers

We ended up having to convert from using Assetic to Browserify

like image 120
Scott Warren Avatar answered Jun 26 '26 02:06

Scott Warren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!