General comment - I'm out until Tuesday, but definitely want to dig in to
this pr more.

On Friday, November 15, 2013, Erik Trom wrote:

> In app/templates/seed/test/test-setup-browser.js:
>
> > +    // routers
> > +    // views
> > +    './views/root.spec',
> > +    'cs!./views/root-coffee.spec', // coffeescript works by default
> > +    // models
> > +    // collections
> > +    // helpers
> > +    './helpers/helpers.spec',
> > +    './helpers/view-helpers.spec',
> > +    // integration
> > +    // utils
> > +  ], function() { // run mocha
> > +    if (global.mochaPhantomJS) { global.mochaPhantomJS.run(); }
> > +    else { global.mocha.run(); }
> > +  });
> > +
>
> requiring test files manually above not ideal, i tried
> https://github.com/OpenWebStack/requirejs-glob but had no luck. I looked
> at the implementation and it's basically using a query param with connect
> middleware to serve up file from a globbed pattern... window.*karma*.files
> regex test is so much easier. Is there a way look at all files connect
> serves? Or a way to set a global like window.*connect*.files via some
> middleware? then we could do the same thing. Maybe adding files here is
> okay, but it's easy to say use karma in the background and then later run
> into a nasty bug that you want to use the browser test runner for and
> realize your missing like the last 3 test files or something... not very
> consistent... thoughts?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/walmartlabs/generator-thorax/pull/62/files#r7708714>
> .
>