Skip to content

Instantly share code, notes, and snippets.

@n1k0
Created June 18, 2012 12:00
Show Gist options
  • Save n1k0/2948039 to your computer and use it in GitHub Desktop.
Save n1k0/2948039 to your computer and use it in GitHub Desktop.
casperjs test --includes
casper.echo('plop');
casper.start('http://google.com/', function() {
this.test.assertTitle('Google');
});
casper.run(function() {
this.test.done();
});

Invokation:

$ casperjs --includes=included_script.js test main_test_script.js

Output:

Test file: main_test_script.js                                                                 
plop
PASS Page title is "Google"
PASS 1 tests executed, 1 passed, 0 failed.    
@danpalmer
Copy link

Brilliant, all works on master. Thanks so much for your help!

@n1k0
Copy link
Author

n1k0 commented Jun 18, 2012

I'm glad if I helped :)

Now I'm still wondering why it didn't work by your side using 0.6.10 :$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment