Skip to content

Commit

Permalink
Saucelabs example.
Browse files Browse the repository at this point in the history
  • Loading branch information
airportyh committed Dec 10, 2012
1 parent d31b855 commit 12fe348
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/saucelabs/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function hello(name){
return "hello " + (name || 'world');
}
8 changes: 8 additions & 0 deletions examples/saucelabs/hello_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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');
});
});
15 changes: 15 additions & 0 deletions examples/saucelabs/testem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on_start:
command: saucelauncher tunnel
wait_for_text: Connected! You may start your tests.

src_files:
- hello.js
- hello_spec.js

launchers:
SL_Chrome:
command: saucelauncher launch googlechrome <url>
protocol: browser

launch_in_ci: [SL_Chrome]
launch_in_dev: [phantomjs]

0 comments on commit 12fe348

Please sign in to comment.