expresso icon indicating copy to clipboard operation
expresso copied to clipboard

How can I --debug/step through expresso tests?

Open timoxley opened this issue 14 years ago • 2 comments

Is there any way to invoke expresso using nodes --debug parameter so I can perhaps run tests through something like the V8 debug tools? Is there another way to step through test code?

If this isn't possible, please interpret this as a feature request ;)

Thanks

timoxley avatar Apr 18 '11 04:04 timoxley

im not to sure actually, I believe you can signal the process with USR1 to start the debugger, but that is an issue with these ttest runners

tj avatar Apr 18 '11 15:04 tj

I tried changing the expresso script to start with #!/usr/bin/env node --debug-brk, and it would report that the debugger was listening, but it didn't seem to want to actually wait for the debugger to connect.

Starting the script with "node --debug-brk /path/to/expresso" allowed the debugger to connect, but eclipse doesn't seem to connect up my tests file with the functions it's extracted for the test. Don't know why because it looks like it's running them fairly normally via a require... I don't know what the deal is.

I think I'll try a different test framework that runs tests more, um, conventionally? It'd be cool if your assert functions were abstracted out so I could keep using them, they're pretty nice.

timoxley avatar Apr 18 '11 23:04 timoxley