move icon indicating copy to clipboard operation
move copied to clipboard

[Feature Request] Unit tests need stronger abort code support

Open tnowacki opened this issue 2 years ago • 0 comments

As highlighted in #127, abort_code annotation in unit tests is not super expressive. We should support

  • Location (The module that gave the abort)
  • More general major + sub status

For the location, suggested syntax:

#[test(abort_code = 0x42::M::2)]
// or
#[test(abort_code = 2, abort_location = 0x42::M)]

Note: annotation support is lacking for this right now

For status codes, suggested syntax:

#[test(status_code = "VECTOR_OPERATION_ERROR", sub_status = 1)]

tnowacki avatar May 12 '22 17:05 tnowacki