I'm open to figuring out how best to do this.
Pusztai Tibor recently got almond working with travis, and almond uses
DOH. Some files that may be interesting:
https://github.com/jrburke/almond/blob/master/.travis.yml
which calls phantomjs with this file that hooks into the DOH reporting:
https://github.com/jrburke/almond/blob/master/tests/runner.js
That said, I'm open to switching to qunit, particularly if others felt
it was easier to add tests. The one thing I like about the DOH tests
is that they can run each test in an iframe and aggregate the results
in the top frame. In the past I have not seen a way to do that with
qunit, but qunit has changed over time, so I could be behind the
times.
As far as running the tests:
I like the idea of having impls just committed to the test repo and
then we can use a travis pass, similar to the one used in almond, to
get any pushes validated.
I can see some advantage of having the tests on a stand-alone domain
-- this would allow potential AMD implementers an easy way to try out
testing without having to clone a repo, and get wider browser test
coverage. Although, at the same time, encouraging a checkout of the
test repo so they can run locally may nudge them to doing the pull
request to get into the repo.
So, if we want a way to start, maybe just wire up the amdjs-tests repo
to use the same travis approach as almond as a start.
Although, I'm not sure if that meets with what you want, in
particular, if you want to do more "as you develop" testing for an
individual loader, that may not be ready for inclusion as a commit to
the test repo. Maybe that just means using a branch of the repo? Just
thinking out loud.
James