From 7ce7516e68e831190371bfd02f1e6b4be3e90d8d Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 24 Jan 2019 11:13:53 +0100 Subject: [PATCH] Update README.md --- remix-tests/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remix-tests/README.md b/remix-tests/README.md index a149105963..840c8b3af5 100644 --- a/remix-tests/README.md +++ b/remix-tests/README.md @@ -57,6 +57,13 @@ Available special functions: | `Assert.greaterThan()` | `uint`, `int` | | `Assert.lesserThan()` | `uint`, `int` | +#### Use a different sender `msg.sender` + +It is quite common that a contract need to be tested in different situation. +Especially being able to set before hand the sender account (`msg.sender`) used for a specific tests suite enable quite a lot a new test use cases. +please checkout https://github.com/ethereum/remix/blob/master/remix-tests/tests/various_sender/sender_test.sol for an example. +note that `TestsAccounts` is filled with all the accounts available in `web3.eth.accounts()`. + ### Command Line Remix-Tests will assume the tests will files whose name end with `"_test.sol"`. e.g `simple_storage_test.sol`