Open cjohansen opened 12 years ago
jsc is basically the same thing as phantom, right? As in, it's a browser environment? Or is it an alternative to node? If the latter, sounds like a thing for 1.1, not 1.0.
http://en.m.wikipedia.org/wiki/Javascriptcore#JavaScriptCore
Basically, I want it to be easy to run tests on jsc by writing a small loader script that uses the prebuilt buster-test.js file. So we're talking about some documentation, possibly some feature tests, and some testing.
I just opened a jsc shell on a Mac. There's no browser environment in it. There's no require or commonjs in general, just a load
to load other files by path into the global environment.
Is this jsc shell what you want to integrate with?
Yup. People use it :) For instance, the mustache guys recently did a "suggest us a test framework" issue, and stated that Rhino and JSC were required platforms.
All I want is for tests to run on these. I've done Rhino with the Sinon tests, it's not too much work: https://github.com/cjohansen/Sinon.JS/blob/master/test/rhino/run.js. It uses env.js to behave like a browser, but that's an OK place to start for now.
Ah, env.js is indeed the missing piece of the puzzle. Sounds good to me!
Should be able to run Buster tests with jsc on OSX