npm install soysauce> Pretty sauceLabs browser matrix widget
[![Sauce Test Status][sauce-image]][sauce]
* __http__://soysauce.berabou.me/u/saucelabs_username.svg
* __http__://soysauce.berabou.me/u/saucelabs_username/session_name.svg
> Can be render if available https://saucelabs.com/rest/v1/saucelabs_username/jobs
``bash`
$ npm install express soysauce
$ node app.jsServer running at http://localhost:59798/
app.js
`js
// Dependencies
var express= require('express');
var soysauce= require('soysauce');
// Setup express
var app= express();
app.use(soysauce.middleware({datauri:true}));
app.listen(59798,function(){
console.log('Server running at http://localhost:59798/');
});
`
Can be render at:
* http://localhost:59798/saucelabs_username.svgsaucelabs_username
* http://localhost:59798//session_name.svg
Replace the url of image to datauri for avoid Mixed Content.
`js
// Not use datauri
app.use(soysauce.middleware());
app.listen(59798,function(){
// ...
//
// ...
});
// Use datauri
app.use(soysauce.middleware({datauri:true}));
app.listen(59799,function(){
// ...
//
// ...
});
`
Cache the rendered svg.
Update the cache if the jobs have been added.
Render a <svg> to stdout If url is jobs.json.
`bash``
$ npm install soysauce --global
$ soysauce "https://saucelabs.com/rest/v1/59798/jobs?name=object-parser&full=true&limit=50" > widget.svg
* karma-saucelabs-launcher
> Launch any browser on SauceLabs at concurrency.
License
---
[MIT][License]
[License]: http://59naga.mit-license.org/
[sauce-image]: http://soysauce.berabou.me/u/59798/hanzen.svg?branch=master
[sauce]: https://saucelabs.com/u/59798
[npm-image]:https://img.shields.io/npm/v/soysauce.svg?style=flat-square
[npm]: https://npmjs.org/package/soysauce
[travis-image]: http://img.shields.io/travis/59naga/soysauce.svg?style=flat-square
[travis]: https://travis-ci.org/59naga/soysauce
[coveralls-image]: http://img.shields.io/coveralls/59naga/soysauce.svg?style=flat-square
[coveralls]: https://coveralls.io/r/59naga/soysauce?branch=master