public
public copied to clipboard
Ember-cli add-on
It would be good to directly support the ember-cli environment. It has well defined test structure using QUnit and currently supports PhantomJS. Having wallaby support direct code coverage and IDEA integration on top of this would be worth paying for.
+1
+1
+1
+1
+1
+1
+1
+1
+1
:+1:
@ArtemGovorov Any word on this? It's been more than a year. Even a rough guide would be nice.
@brandonweiss No news on this one. It's also not in any of our close plans. I will post some update here if anything changes.
I would definitely like this integration - I am having nightmares getting my Ember tests working in Webstorm with the wallaby plugin. What would be involved in integrating it as a supported platform? Just asking in case it something someone could help with.
@deedubbleyoo I haven't worked with ember-cli and have a pretty much zero experience with it. From what I can briefly see in ember-cli docs (the testing side of things), it is qunit
(with some helpers?) + ES2015 (modules and the rest). If ember-cli builds ES6 modules/CommonJs similar to how webpack or browserify do it, then the main (and possibly the only) thing required is a postprocessor (to build ES6 modules into something that a browser environment can execute).
Fortunately, this part of wallaby is easily extensible. For example, webpack and browserify support are implemented as open source postprocessors. Perhaps ember postprocessor can be implemented in the same way.
As an alternative, one may just try to use wallaby supported modules bundlers, like webpack and browserify to create a testing configuration. So it'll be qunit
as a testing framework, babel to compile ES2015 and webpack or browserify for imports/CommonJs. While using a different module bundler for the task may seem strange, but it's for testing only and if it works and gets your code tested, then why not. So if anyone checks and finds out if this approach works, let me know.
@ArtemGovorov I just though about moral side of using different bundler for testing, and I was scared of those differences. But it sounds very reasonable!
+1