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

traceback on error? #46

Closed
JustAPerson opened this issue Oct 10, 2012 · 4 comments
Closed

traceback on error? #46

JustAPerson opened this issue Oct 10, 2012 · 4 comments
Milestone

Comments

@JustAPerson
Copy link

Perhaps there could be a flag that enables printing the traceback upon a failed test that errors unexpectedly?

Right now I only get the single error line when something goes wrong in my code, but I think more context such as the traceback could be useful.

Failure → src/test.lua @ 35
LOADK - Boolean
./src/main.lua:71: attempt to perform arithmetic on local 'd' (a nil value)

Since this is inside of a function I use everywhere, I believe a little more context would help actually resolve it.

@Tieske
Copy link
Member

Tieske commented Oct 10, 2012

have you tried the verbose option; -v ?

@DorianGray
Copy link
Contributor

This brings up another issue. We should probably document the command line outside of the command line itself. Currently to learn about the command line you have to open up a command prompt and run busted --help

@Tieske
Copy link
Member

Tieske commented Oct 10, 2012

it is in the docs; http://olivinelabs.com/busted/#usage

@DorianGray
Copy link
Contributor

Ah, right, I searched the wrong place. Closing this then as OP + myself didn't read. =)

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

No branches or pull requests

3 participants