Add custom generated messages for assert.soon & siblings

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Sharding
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, assert.soon accepts a message as a parameter. However, the string is a fixed message that is constructed during the call to assert.soon. It would be nice to have some way of constructing helpful error messages when assert.soon timeout is triggered.

      Something like this or better:

      let str = "msg";
      assert.soon(() => {
        str = "I changed msg";
        return false;
      }, () => { return str; });
      

              Assignee:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: