Created by: Russ Back ([email protected]) on 2015/03/24 08:31:58 +0000
Votes at time of UserVoice import: 8
Unit testing can be hard, and although there's a plugin out there that aims to help, the name of it kind of gives away how hard this is right now (loath).
Integration of something like PhpSpec would be great as part of the core.
Also, Laracasts has an excellent tutorial series on testing with Laravel to get more specifics (requires a membership to view):
This would be amazing if Craft provided a fluent way to test applications! Something similar to the Laravel Testing Framework would be amazing (https://laravel.com/docs/5.2/testing).
It would be great to be able to test our application/website and not just plugins. Something like
$this->seeElement($userElement);
That could check to make sure a new element was created in the database or just verify the model has no errors.
Craft 3 beta has a lot of bootstrapping setup in the main repository now, but some extra help on bootstrapping/testing plugins would be amazing!
As of Craft 3.2 BETA-1, there is now a formalized testing Framework for Craft. Based on Codeception with support for sites, modules and plugins in various testing styles.
Formal announcement here
Big +1 for @boboldehampsink for his help on this.
Most helpful comment
As of Craft 3.2 BETA-1, there is now a formalized testing Framework for Craft. Based on Codeception with support for sites, modules and plugins in various testing styles.
Formal announcement here
Big +1 for @boboldehampsink for his help on this.