Resources in buster-server

14 views
Skip to first unread message

Asser Schrøder Femø

unread,
Mar 11, 2014, 10:39:32 AM3/11/14
to bust...@googlegroups.com
Hi,

I've been using Buster for a while with buster-static (due to a requirement of testing in IE7 which doesn't work with buster-server) and my config-file has a few static resources defined like this:

config["Tests"] = {
  ...
  resources: [
    { path: '/empty.js', file: 'test/fixtures/empty.js' },
    ...
  ]
}


This works perfectly in static mode, but when running the same tests in client/server mode requesting the empty.js file from my script returns 404.

Any way of getting the static resources to work on the buster-server? I'm trying to convert to the client/server mode in order to run tests in our Jenkins CI environment using PhantomJS.

I've been digging a bit in the docs and Google (and the source code) but was unable to find anything. Currently running 0.6 in production since buster-static is not available in 0.7 but the buster-server trials were done with Buster 0.7.

cheers,
Asser

Asser Schrøder Femø

unread,
Mar 11, 2014, 11:11:02 AM3/11/14
to bust...@googlegroups.com
And writing this post made me realize that I have to use buster.env.path (or buster.env.contextPath in case of 0.6) to find my resources.

Oh well, maybe it'll help somebody else ;-)
Reply all
Reply to author
Forward
0 new messages