I am doing API testing using Mocha + Nodejs. For each API there are certain variations and the request data for the POST API is drummed up based on certain preconditions. Because of the logic that exists before running the mocha test, I am using Coffee scripts to run the Mocha test programmatically. In these scripts I compile the request data and persist them with a unique identifier. I need a way to pass this unique identifier to the Mocha test so that it can retrieve the request data.
The second part of my question is - how can i specify the compiler (as achieved by --compiler:coffee-script in the CLI) programmatically ?