Skip to content

Instantly share code, notes, and snippets.

@igorlima
Last active August 29, 2015 14:16
Show Gist options
  • Save igorlima/18171c170e3e35a157be to your computer and use it in GitHub Desktop.
Save igorlima/18171c170e3e35a157be to your computer and use it in GitHub Desktop.

Revisions

  1. igorlima revised this gist Mar 7, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    [![Gittip Donate Button](http://img.shields.io/gratipay/igorribeirolima.svg)](https://gratipay.com/igorribeirolima/)

    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). This CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing, and *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [examples](https://github.com/airportyh/testem/tree/master/examples/saucelabs) and has the following [jasmine](http://jasmine.github.io/) sample tests:
  2. igorlima revised this gist Feb 26, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -49,9 +49,9 @@ Run these tests cross platforms step by step, need only few command lines, as de

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where specifies which JS framework to use. In this case, we are using JasmineJS.*

    Do you feel comfortable to watch a [video](http://showterm.io/592f4be927803a428035e) instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).
    Do you feel comfortable to watch a [video](http://showterm.io/bd7400428650f13e43eb6) instead? Go ahead and watch [it](http://showterm.io/bd7400428650f13e43eb6).

    <iframe src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></iframe>
    <iframe src="http://showterm.io/bd7400428650f13e43eb6" width="640" height="480"></iframe>

    Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

  3. igorlima revised this gist Feb 26, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing, and *saucie* makes easier that cross browser testing by CLI.
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). This CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing, and *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [examples](https://github.com/airportyh/testem/tree/master/examples/saucelabs) and has the following [jasmine](http://jasmine.github.io/) sample tests:

  4. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@ Run these tests cross platforms step by step, need only few command lines, as de

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where specifies which JS framework to use. In this case, we are using JasmineJS.*

    Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).
    Do you feel comfortable to watch a [video](http://showterm.io/592f4be927803a428035e) instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).

    <iframe src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></iframe>

  5. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,6 @@ Did you see? Just typing few command lines and everything was tested cross brows
    * [IE7 test video](https://saucelabs.com/tests/945ebbe3b6044963a017cef5949d1cf6)
    * [Android test video](https://saucelabs.com/jobs/11bd49cee6cf49d2a76d5b655f6ccb0f)

    *Saucie* still growing up to integrate other platforms like [BrowserStack](http://www.browserstack.com/). New features will come soon. And these days it [got various improvements](https://github.com/igorlima/sauce-js-tests-integration/pull/4) from [johanneswuerbach](https://github.com/johanneswuerbach). He made several changes [to use *saucie*](https://github.com/johanneswuerbach/ember-cli-sauce/commit/27036f2c97454abb5a2065fb5a754e7c972ddad4) in [ember-cli-sauce](https://github.com/johanneswuerbach/ember-cli-sauce), which is now used by [htmlbars](https://github.com/tildeio/htmlbars), the rendering engine used by [emberjs](https://github.com/emberjs/ember.js).
    *Saucie* still growing up to integrate other platforms like [BrowserStack](http://www.browserstack.com/). New features coming soon. And these days it [got various improvements](https://github.com/igorlima/sauce-js-tests-integration/pull/4) from [johanneswuerbach](https://github.com/johanneswuerbach). He made several changes [to use *saucie*](https://github.com/johanneswuerbach/ember-cli-sauce/commit/27036f2c97454abb5a2065fb5a754e7c972ddad4) in [ember-cli-sauce](https://github.com/johanneswuerbach/ember-cli-sauce), which is now used by [htmlbars](https://github.com/tildeio/htmlbars), the rendering engine used by [emberjs](https://github.com/emberjs/ember.js).

    Feel free to file issue and send pull requests and let’s become *saucie* even better. Thanks!
  6. igorlima revised this gist Feb 24, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing, and *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [examples](https://github.com/airportyh/testem/tree/master/examples/saucelabs) and has the following [jasmine](http://jasmine.github.io/) sample tests:

    @@ -21,7 +21,7 @@ describe(‘hello’, function(){
    });
    ```

    Run these tests cross platforms step by step, need only few command lines, described below:
    Run these tests cross platforms step by step, need only few command lines, as described below:

    1. First of all [create your SauceLabs account](https://saucelabs.com/signup/trial)
    2. Make sure Sauce credentials are set as [environment variables](http://en.wikipedia.org/wiki/Environment_variable):
    @@ -51,7 +51,7 @@ Run these tests cross platforms step by step, need only few command lines, descr

    Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).

    <video src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></video>
    <iframe src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></iframe>

    Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

  7. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ Run these tests cross platforms step by step, need only few command lines, descr

    Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).

    <iframe src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></iframe>
    <video src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></video>

    Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

  8. igorlima revised this gist Feb 24, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,11 @@ Run these tests cross platforms step by step, need only few command lines, descr

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where specifies which JS framework to use. In this case, we are using JasmineJS.*

    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e). Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:
    Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e).

    <iframe src="http://showterm.io/592f4be927803a428035e" width="640" height="480"></iframe>

    Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

    * [iOS test video](https://saucelabs.com/tests/06b62f4bba48469999d7212cf1b62818)
    * [IE7 test video](https://saucelabs.com/tests/945ebbe3b6044963a017cef5949d1cf6)
  9. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ Run these tests cross platforms step by step, need only few command lines, descr
    * ``cd examples/saucelabs/``
    4. Keep that **first** terminal opened, open a **second** terminal and follow the script below:
    * ``cd testem/examples/saucelabs/``
    * ``testem port 8080``
    * ``testem --port 8080``
    6. Go back to the **first** terminal and type:
    * ``saucie --browserNameSL="internet explorer" --versionSL="7.0" --platformSL="Windows XP"``
    * ``saucie --browserNameSL="iphone" --versionSL="8.1" --platformSL="OS X 10.10" --deviceNameSL="iPad Simulator" --deviceOrientationSL="portrait"``
  10. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ describe(‘hello’, function(){
    Run these tests cross platforms step by step, need only few command lines, described below:

    1. First of all [create your SauceLabs account](https://saucelabs.com/signup/trial)
    2. Make sure Sauce credentials are set as environment variables:
    2. Make sure Sauce credentials are set as [environment variables](http://en.wikipedia.org/wiki/Environment_variable):
    * **SAUCE_USERNAME** - your SauceLabs username
    * **SAUCE_ACCESS_KEY** - your SauceLabs API/Access key.
    3. After that set up, follow the scripts below:
  11. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ describe(‘hello’, function(){
    Run these tests cross platforms step by step, need only few command lines, described below:

    1. First of all [create your SauceLabs account](https://saucelabs.com/signup/trial)
    2. Make sure Sauce credentials are set in env:
    2. Make sure Sauce credentials are set as environment variables:
    * **SAUCE_USERNAME** - your SauceLabs username
    * **SAUCE_ACCESS_KEY** - your SauceLabs API/Access key.
    3. After that set up, follow the scripts below:
  12. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate results of your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [examples](https://github.com/airportyh/testem/tree/master/examples/saucelabs) and has the following [jasmine](http://jasmine.github.io/) sample tests:

  13. igorlima revised this gist Feb 24, 2015. No changes.
  14. igorlima revised this gist Feb 24, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools available for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate results of your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools availables for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate results of your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [example](https://github.com/airportyh/testem/tree/master/examples/saucelabs), which has the following [jasmine](http://jasmine.github.io/) sample tests:
    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [examples](https://github.com/airportyh/testem/tree/master/examples/saucelabs) and has the following [jasmine](http://jasmine.github.io/) sample tests:

    __*hello.js*__
    ```js
    @@ -21,7 +21,7 @@ describe(‘hello’, function(){
    });
    ```

    Run these tests cross platforms step by step, need only few command lines which described below:
    Run these tests cross platforms step by step, need only few command lines, described below:

    1. First of all [create your SauceLabs account](https://saucelabs.com/signup/trial)
    2. Make sure Sauce credentials are set in env:
    @@ -47,7 +47,7 @@ Run these tests cross platforms step by step, need only few command lines which

    **Note 3:** *type ``saucie --help`` to get a help.*

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where is specified which JS framework to use. In this case, we are using JasmineJS.*
    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where specifies which JS framework to use. In this case, we are using JasmineJS.*

    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e). Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

  15. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,7 @@ All steps described above is also available in a [video](http://showterm.io/592f

    * [iOS test video](https://saucelabs.com/tests/06b62f4bba48469999d7212cf1b62818)
    * [IE7 test video](https://saucelabs.com/tests/945ebbe3b6044963a017cef5949d1cf6)
    * [Android test video](https://saucelabs.com/tests/26c56bd827b84f91ba4da6f734e04e61)
    * [Android test video](https://saucelabs.com/jobs/11bd49cee6cf49d2a76d5b655f6ccb0f)

    *Saucie* still growing up to integrate other platforms like [BrowserStack](http://www.browserstack.com/). New features will come soon. And these days it [got various improvements](https://github.com/igorlima/sauce-js-tests-integration/pull/4) from [johanneswuerbach](https://github.com/johanneswuerbach). He made several changes [to use *saucie*](https://github.com/johanneswuerbach/ember-cli-sauce/commit/27036f2c97454abb5a2065fb5a754e7c972ddad4) in [ember-cli-sauce](https://github.com/johanneswuerbach/ember-cli-sauce), which is now used by [htmlbars](https://github.com/tildeio/htmlbars), the rendering engine used by [emberjs](https://github.com/emberjs/ember.js).

  16. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@ Run these tests cross platforms step by step, need only few command lines which

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where is specified which JS framework to use. In this case, we are using JasmineJS.*

    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch it. Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:
    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch [it](http://showterm.io/592f4be927803a428035e). Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

    * [iOS test video](https://saucelabs.com/tests/06b62f4bba48469999d7212cf1b62818)
    * [IE7 test video](https://saucelabs.com/tests/945ebbe3b6044963a017cef5949d1cf6)
  17. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ Run these tests cross platforms step by step, need only few command lines which

    **Note 1:** *All platforms are listed [here](https://saucelabs.com/platforms/). How to know values for browserNameSL, versionSL and platformSL params? Check it [here](https://docs.saucelabs.com/reference/platforms-configurator/#/)*.

    **Note 2:** *If you’d like to use the default configuration just type ``testem ci --port 8080`` and be happy.
    **Note 2:** *If you’d like to use the default configuration just type ``testem ci --port 8080`` and be happy*.

    **Note 3:** *type ``saucie --help`` to get a help.*

  18. igorlima revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -41,7 +41,7 @@ Run these tests cross platforms step by step, need only few command lines which
    * ``saucie --browserNameSL="iphone" --versionSL="8.1" --platformSL="OS X 10.10" --deviceNameSL="iPad Simulator" --deviceOrientationSL="portrait"``
    * ``saucie --browserNameSL="android" --versionSL="4.1" --platformSL="Linux" --deviceNameSL="Motorola Atrix HD Emulator" --deviceOrientationSL="portrait"``

    **Note 1:** *All platforms are listed at [here](https://saucelabs.com/platforms/). How to know values for browserNameSL, versionSL and platformSL params? Check it [here](https://docs.saucelabs.com/reference/platforms-configurator/#/)*
    **Note 1:** *All platforms are listed [here](https://saucelabs.com/platforms/). How to know values for browserNameSL, versionSL and platformSL params? Check it [here](https://docs.saucelabs.com/reference/platforms-configurator/#/)*.

    **Note 2:** *If you’d like to use the default configuration just type ``testem ci --port 8080`` and be happy.

  19. igorlima revised this gist Feb 24, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -42,8 +42,11 @@ Run these tests cross platforms step by step, need only few command lines which
    * ``saucie --browserNameSL="android" --versionSL="4.1" --platformSL="Linux" --deviceNameSL="Motorola Atrix HD Emulator" --deviceOrientationSL="portrait"``

    **Note 1:** *All platforms are listed at [here](https://saucelabs.com/platforms/). How to know values for browserNameSL, versionSL and platformSL params? Check it [here](https://docs.saucelabs.com/reference/platforms-configurator/#/)*

    **Note 2:** *If you’d like to use the default configuration just type ``testem ci --port 8080`` and be happy.

    **Note 3:** *type ``saucie --help`` to get a help.*

    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where is specified which JS framework to use. In this case, we are using JasmineJS.*

    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch it. Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:
  20. igorlima created this gist Feb 24, 2015.
    57 changes: 57 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    You probably know that to do JavaScript testing is good and one of hurdles to overcome is how to test our code on different browsers. There’re some tools available for helping us on hurdling this overcome. One of them is a CLI (*command line*) named as [*saucie*](https://www.npmjs.com/package/saucie) developed by [igorlima](https://github.com/igorlima). That CLI is a library hosted on [NPM](https://www.npmjs.com/) which allows integrate results of your frontend JavaScript tests with [SauceLabs](https://saucelabs.com/) platform. SauceLabs makes awesome cross browser testing. And *saucie* makes easier that cross browser testing by CLI.

    A great [interactive JS Test Runner](http://tobyho.com/2012/06/24/testem-interactive-js-test-runner/), the [testem](https://github.com/airportyh/testem) library, uses *saucie* on its [example](https://github.com/airportyh/testem/tree/master/examples/saucelabs), which has the following [jasmine](http://jasmine.github.io/) sample tests:

    __*hello.js*__
    ```js
    function hello(name){
    return “hello “ + (name || ‘world’);
    }
    ```

    __*hello_spec.js*__
    ```js
    describe(‘hello’, function(){
    it(‘should say hello’, function(){
    expect(hello()).toBe(‘hello world’);
    });
    it(‘should say hello to person’, function(){
    expect(hello(‘Bob’)).toBe(‘hello Bob’);
    });
    });
    ```

    Run these tests cross platforms step by step, need only few command lines which described below:

    1. First of all [create your SauceLabs account](https://saucelabs.com/signup/trial)
    2. Make sure Sauce credentials are set in env:
    * **SAUCE_USERNAME** - your SauceLabs username
    * **SAUCE_ACCESS_KEY** - your SauceLabs API/Access key.
    3. After that set up, follow the scripts below:
    * ``npm install -g testem saucie``
    * ``git clone [email protected]:airportyh/testem.git``
    * ``cd testem/``
    * ``git checkout tags/v0.7.1``
    * ``cd examples/saucelabs/``
    4. Keep that **first** terminal opened, open a **second** terminal and follow the script below:
    * ``cd testem/examples/saucelabs/``
    * ``testem —port 8080``
    6. Go back to the **first** terminal and type:
    * ``saucie --browserNameSL="internet explorer" --versionSL="7.0" --platformSL="Windows XP"``
    * ``saucie --browserNameSL="iphone" --versionSL="8.1" --platformSL="OS X 10.10" --deviceNameSL="iPad Simulator" --deviceOrientationSL="portrait"``
    * ``saucie --browserNameSL="android" --versionSL="4.1" --platformSL="Linux" --deviceNameSL="Motorola Atrix HD Emulator" --deviceOrientationSL="portrait"``

    **Note 1:** *All platforms are listed at [here](https://saucelabs.com/platforms/). How to know values for browserNameSL, versionSL and platformSL params? Check it [here](https://docs.saucelabs.com/reference/platforms-configurator/#/)*
    **Note 2:** *If you’d like to use the default configuration just type ``testem ci --port 8080`` and be happy.
    **Note 3:** *type ``saucie --help`` to get a help.*
    **Note 4:** *testem.yml is a [configuration file](https://github.com/airportyh/testem#configuration-file) where is specified which JS framework to use. In this case, we are using JasmineJS.*

    All steps described above is also available in a [video](http://showterm.io/592f4be927803a428035e). Do you feel comfortable to watch a video instead? Go ahead and watch it. Did you see? Just typing few command lines and everything was tested cross browsers. Now let’s go to SauceLabs and check the result on many browsers, including the mobile ones such as iOS and Android:

    * [iOS test video](https://saucelabs.com/tests/06b62f4bba48469999d7212cf1b62818)
    * [IE7 test video](https://saucelabs.com/tests/945ebbe3b6044963a017cef5949d1cf6)
    * [Android test video](https://saucelabs.com/tests/26c56bd827b84f91ba4da6f734e04e61)

    *Saucie* still growing up to integrate other platforms like [BrowserStack](http://www.browserstack.com/). New features will come soon. And these days it [got various improvements](https://github.com/igorlima/sauce-js-tests-integration/pull/4) from [johanneswuerbach](https://github.com/johanneswuerbach). He made several changes [to use *saucie*](https://github.com/johanneswuerbach/ember-cli-sauce/commit/27036f2c97454abb5a2065fb5a754e7c972ddad4) in [ember-cli-sauce](https://github.com/johanneswuerbach/ember-cli-sauce), which is now used by [htmlbars](https://github.com/tildeio/htmlbars), the rendering engine used by [emberjs](https://github.com/emberjs/ember.js).

    Feel free to file issue and send pull requests and let’s become *saucie* even better. Thanks!