Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow usage of coffee-script #31

Closed
thibaut-sticky opened this issue Jun 30, 2014 · 2 comments
Closed

Allow usage of coffee-script #31

thibaut-sticky opened this issue Jun 30, 2014 · 2 comments

Comments

@thibaut-sticky
Copy link
Contributor

Hi,

I use coffee-script to write all my tests. Mocha by default is able to read coffee but it's not the case when you use it programmaticaly (new Mocha…).

For the moment, I have to run a first task to compile my code JS and then call grunt-webdriver. When error happened… line number target of course the JS file.

It could be a nice improvement to create a require option like this Grunt task

Do you think is feasable?

I test adding require('coffee-script/register'); into webdriver.js and it did the job.

@thibaut-sticky
Copy link
Contributor Author

Finally just adding require('coffee-script/register'); in my Gruntfile was enough.

@christian-bromann
Copy link
Contributor

Great! I will paste it into the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants