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 for catching expected exceptions within tests #51

Open
molovo opened this issue Mar 2, 2017 · 0 comments
Open

Allow for catching expected exceptions within tests #51

molovo opened this issue Mar 2, 2017 · 0 comments

Comments

@molovo
Copy link
Member

molovo commented Mar 2, 2017

If we integrate crash as described in #50, we could allow users to mark tests as expecting a certain exception or exit code, and mark the test as passed if the exception occurs.

Syntax:

@test 'My awesome test' {
  @expect AnException
  
  # Test code here...
}
@molovo molovo added this to the v0.7.0 milestone Mar 2, 2017
@molovo molovo mentioned this issue Mar 16, 2017
7 tasks
@molovo molovo mentioned this issue Mar 27, 2017
6 tasks
@molovo molovo modified the milestone: v0.7.0 Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant