You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I'm writting Selenium test using this grunt module. This module use Mocha in a programmatic way. Problem is my tests are written in coffeescript.
Normally I should use --compilers coffee:coffee-script/register to compile them. But according to this page compiler is not yet understood.
I found a workaround using grunt-contrib-coffee to compile my code to js. But, when my test failed because of exception, I have a stacktrace on the .js files. So I have to open the js file, look the line, and then open the .coffee file. It's not really a nice workflow.
Can you tell me if I miss something about the usage of Mocha in Programmatic way?
The text was updated successfully, but these errors were encountered:
I think you need a source map to associate lines in your .js file with lines in your .coffee file? I'm not really sure. I think this is beyond Mocha's scope.
Would need to see code to be able to help more.
My only other recommendation would be to just use JS because you won't have these problems. 😄
Hi,
Currently, I'm writting Selenium test using this grunt module. This module use Mocha in a programmatic way. Problem is my tests are written in coffeescript.
Normally I should use --compilers coffee:coffee-script/register to compile them. But according to this page compiler is not yet understood.
I found a workaround using grunt-contrib-coffee to compile my code to js. But, when my test failed because of exception, I have a stacktrace on the .js files. So I have to open the js file, look the line, and then open the .coffee file. It's not really a nice workflow.
Can you tell me if I miss something about the usage of Mocha in Programmatic way?
The text was updated successfully, but these errors were encountered: