Uploaded image for project: 'RChain'
  1. RCHAIN-2292

Improve the failure messages for Rholang unittests ran by TestSet

    Details

    • Type: Story
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: RNode-0.8.4
    • Component/s: Contracts
    • Labels:
      None

      Description

      With the current implementation the unittests fail with the message "false was not true" and this makes the debugging a terrible experience.

      We should have a message saying "expected value was ... and actual value is..."

      See below an example of failing tests:
      {{[info] MakeMintSpec:
      [info] MakeMint rholang contract
      [info] - should Purses should be created with the given balance. (28 milliseconds)
      [info] - should Cross-currency deposits should fail. (1 millisecond)
      [info] - should Deposit should work as expected. *** FAILED *** (20 milliseconds)
      [info] false was not true (MakeMintSpec.scala:29)
      [info] - should Split should work as expected. *** FAILED *** (1 millisecond)
      [info] false was not true (MakeMintSpec.scala:29)}}

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                ovidiu Ovidiu Deac
                Reporter:
                ovidiu Ovidiu Deac
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: