From 7f2718cce95a7f4f394537a00ae2ccea9bfebe1f Mon Sep 17 00:00:00 2001 From: Jonah Stiennon Date: Wed, 6 Jul 2016 12:25:43 -0700 Subject: [PATCH] remove testing and docs on YUI Test support --- README.md | 15 +++------------ grunt/aliases.js | 4 +--- grunt/saucelabs-yui.js | 21 --------------------- tasks/saucelabs.js | 2 +- 4 files changed, 5 insertions(+), 37 deletions(-) delete mode 100644 grunt/saucelabs-yui.js diff --git a/README.md b/README.md index ccb1694..c968d08 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,12 @@ grunt-saucelabs [![Dependency Status](https://david-dm.org/axemclion/grunt-saucelabs.png)](https://david-dm.org/axemclion/grunt-saucelabs) [![devDependency Status](https://david-dm.org/axemclion/grunt-saucelabs/dev-status.png)](https://david-dm.org/axemclion/grunt-saucelabs#info=devDependencies) -A Grunt task for running QUnit, Jasmine, Mocha, YUI tests, or any framework using Sauce Labs' Cloudified Browsers. +A Grunt task for running QUnit, Jasmine, Mocha or any framework using Sauce Labs' Cloudified Browsers. [Grunt](http://gruntjs.com/) is a task-based command line build tool for JavaScript projects, based on nodejs. [QUnit](http://qunitjs.com/) is a powerful, easy-to-use JavaScript unit test suite used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself! [Jasmine](http://jasmine.github.io/) is a behavior-driven development framework for testing JavaScript code. [Mocha](https://github.com/mochajs/mocha) is a JavaScript test framework for running serial asynchronous tests. -[YUI Test](http://developer.yahoo.com/yui/yuitest/) is a browser-based testing framework from Yahoo!. [Sauce Labs](https://saucelabs.com/) offers browser environments on the cloud for testing code. About the tool @@ -22,7 +21,7 @@ About the tool The [grunt-contrib-qunit](https://github.com/gruntjs/grunt-contrib-qunit) task runs QUnit based test suites on [PhantomJS](http://phantomjs.org/). The `saucelabs-qunit` task is very similar but runs the test suites on the cloudified browser environment provided by Sauce Labs. This ensures that subject of the test runs across different browser environment. The task also uses [Sauce Connect](https://saucelabs.com/docs/connect) to establish a tunnel between Sauce Labs browsers and the machine running Grunt to load local pages. This is typically useful for testing pages on localhost that are not publicly accessible on the internet. -The `saucelabs-jasmine` runs [Jasmine](http://pivotal.github.io/jasmine/) tests in the Sauce Labs browser. The `saucelabs-jasmine` task requires `jasmine-1.3.0`. There are also `saucelabs-mocha` and `saucelabs-yui` tasks that let you run your Mocha and YUI tests on Sauce Labs cloudified browser environment. +The `saucelabs-jasmine` runs [Jasmine](http://pivotal.github.io/jasmine/) tests in the Sauce Labs browser. The `saucelabs-jasmine` task requires `jasmine-1.3.0`. There is also a `saucelabs-mocha` task that lets you run your Mocha tests on Sauce Labs cloudified browser environment. Usage ------ @@ -62,7 +61,7 @@ var request = require('request'); ``` -The configuration of `saucelabs-jasmine`, `saucelabs-mocha`, `saucelabs-yui`, and `saucelabs-custom` are exactly the same. +The configuration of `saucelabs-jasmine`, `saucelabs-mocha` and `saucelabs-custom` are exactly the same. Note the options object inside a grunt target. This was introduced in grunt-saucelabs-* version 4.0.0 to be compatible with grunt@0.4.0 @@ -177,14 +176,6 @@ Add the following to the mocha test page html. Make sure you remove any calls to ``` -### Test result details with YUI Test ### - -There's nothing you have to do for YUI Tests! The js library already exposes ```window.YUITest.TestRunner.getResults()``` - -### Test result details with a custom framework ### - -When you tests are finished, expose your tests results on `window.global_test_results` as explained in [SauceLab's JS Unit Testing REST API Documentation](https://saucelabs.com/docs/rest#jsunit) - OnTestComplete callback ----------------------- An optional parameter to the grunt task is `OnTestComplete`, a callback which is called at the end of every test, before results are logged to the console. diff --git a/grunt/aliases.js b/grunt/aliases.js index 929290a..90fb63b 100644 --- a/grunt/aliases.js +++ b/grunt/aliases.js @@ -5,7 +5,6 @@ module.exports = function (grunt) { var positiveTests = [ 'saucelabs-qunit:succeeds', 'saucelabs-jasmine:succeeds', - 'saucelabs-yui:succeeds', 'saucelabs-mocha:succeeds', 'saucelabs-custom:succeeds', 'saucelabs-custom:callback-succeeds', @@ -16,7 +15,6 @@ module.exports = function (grunt) { var negativeTests = [ 'saucelabs-qunit:fails', 'saucelabs-jasmine:fails', - 'saucelabs-yui:fails', 'saucelabs-mocha:fails', 'saucelabs-custom:fails', 'saucelabs-qunit:error' @@ -29,4 +27,4 @@ module.exports = function (grunt) { grunt.registerTask('dev', ['connect', 'watch']); grunt.registerTask('test', testjobs); grunt.registerTask('default', ['test']); -}; \ No newline at end of file +}; diff --git a/grunt/saucelabs-yui.js b/grunt/saucelabs-yui.js deleted file mode 100644 index f204156..0000000 --- a/grunt/saucelabs-yui.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = function (grunt, options) { - - return { - options: options.baseSaucelabsTaskOptions, - succeeds: { - options: { - urls: ['http://127.0.0.1:9999/yui/index.html'], - testname: 'saucelabs-yui:succeeds' - } - }, - fails: { - options: { - urls: ['http://127.0.0.1:9999/yui/fails.html'], - testname: 'saucelabs-yui:fails', - onTestComplete: options.negateResult - } - } - }; -}; diff --git a/tasks/saucelabs.js b/tasks/saucelabs.js index 389c03f..2d055e8 100644 --- a/tasks/saucelabs.js +++ b/tasks/saucelabs.js @@ -67,7 +67,7 @@ module.exports = function (grunt) { break; default: grunt.log.error('Unexpected notification type'); - } + } } function createTunnel(arg) {