From 83892399f08aba920cdd50b36bf928fd20cfff45 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 28 Nov 2016 13:13:42 +0000 Subject: Explain how to run soltest --- docs/contributing.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs') diff --git a/docs/contributing.rst b/docs/contributing.rst index 111fb932..42204d5c 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -59,3 +59,18 @@ for this project. Also, even though we do CI testing, please test your code and ensure that it builds locally before submitting a pull request. Thank you for your help! + +Running the compiler tests +========================== + +Solidity includes different types of tests. They are included in the application +called ``soltest``. Some of them require the ``cpp-ethereum`` client in testing mode. + +To run ``cpp-ethereum`` in testing mode: ``eth --test -d /tmp/testeth``. + +To run the tests: ``soltest -- --ipcpath /tmp/testeth/geth.ipc``. + +To run a subset of tests, filters can be used: +``soltest -t TestSuite/TestName -- --ipcpath /tmp/testeth/geth.ipc``, where ``TestName`` can be a wildcard ``*``. + +Alternatively, there is a testing script at ``scripts/test.sh`` which executes all tests. -- cgit