I am keen to use FuncUnit instead of plain Selenium on a project, as I prefer FuncUnit's jQuery syntax to Selenium's XPath, but I also want to make use of the cross-browser cloud testing service Sauce Labs: http://saucelabs.com/ and I don't think it will be possible to integrate the two.
So I was wondering if anyone has successfully used FuncUnit with Sauce Labs, and if it even looks possible? Do I just need to request that Sauce Labs add support for FuncUnit?
I think it should be possible but no one's ever tried it afaik. In their instructions they say you can point to a user-extensions.js file. I made all the JS for the project build into that one file. So in theory it should just involve pointing their servers to that file and your tests.
Do you mean I should use Steal to build the scripts used by my funcunit.html page or my main application page? I assume you mean funcunit.html as that includes the FuncUnit dependencies that the tests will require.
No I meant there's a single user-extensions.js file that has all the "extra" files used by selenium mode FuncUnit.
The way funcunit actually works is when you run envjs funcunit.html...
1) Rhino runs on the command line, opens your page in Envjs, loads all its dependencies, launches a Selenium Server
2) commands are sent to the selenium server from your page in Rhino.
3) selenium opens that command HTML page, which loads all the stuff it needs in user-extensions.js
4) the command HTML page opens your app page, and runs the commands on it, reporting results back to the command line.
So everything that happens on the selenium side is packaged into that one user-extensions.js file. I think how this would work is you point FuncUnit to use not the local Selenium server, but Sauce Labs' selenium server, and your local user-extensions.js file (which you might have to upload to their servers). Then it should just work.