[SERVER-10148] Add assert.doesNotThrow() javascript shell function Created: 09/Jul/13 Updated: 11/Jul/16 Resolved: 22/Jul/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell, Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.2 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | J Rassi | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Analogue to assert.throws. Should be used to self-document when the expected failure mode for a test case is for an exception to be thrown. Will output a stack trace through doassert (note that output generated for uncaught exceptions currently does not even include a line number).
Example usage:
|
| Comments |
| Comment by auto [ 22/Jul/13 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |
| Comment by auto [ 22/Jul/13 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |