petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
764 stars 51 forks source link

Run unit tests on testling and display badge #12

Closed Raynos closed 8 years ago

Raynos commented 11 years ago

https://ci.testling.com/

Testling is like a CI in the cloud for frontend javascript libraries!

I use it for my libraries ( https://github.com/Raynos/immutable-hash ) and it's a solid indicator of browser support at a glance!

petermichaux commented 11 years ago

I do run the tests before I commit. :-)

The tests for Maria are written with the Buster testing framework. Do you know how to set-up a project using Buster for the Testling CI tool? @cjohansen?

Raynos commented 11 years ago

If you can configure busterjs to output TAP in the browser and then console.log those TAP statements then testling will pick up the test results, parse them and display a badge

You will need to somehow create a single javascript or html file with all the tests in it.

Testling has an example project demonstrating how to use it with a custom html page ( https://github.com/substack/testling-html-example )

petermichaux commented 11 years ago

I like the idea. A short look does not show Buster produces TAP output without some jiggering around. It will take some more investigation.

Raynos commented 11 years ago

Buster mentions tap in their README but doesnt appear to actually support it :/.

There is a thing called buster-move that has the buster API but uses the tap module. We can probably patch that to make a buster test suite output TAP. Opened an issue on it ( https://github.com/rvagg/node-bustermove/issues/1 )

cjohansen commented 11 years ago

Buster supports TAP, but unfortunately on the command-line. Being able to console.log TAP in the browser shouldn't be too hard. File a buster issue?

petermichaux commented 11 years ago

A few days ago, I ran all the tests manually in many browsers. I cannot do that frequently. This automated testing will be a big help.