You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,27 +80,40 @@ For the mediator payment, a mandatory multisig address is created. To spend the
80
80
81
81
Like with the primary payment, a user is prompted for a signed mediator payment if they are a job creator accepting a delivery or they are the mediator resolving a dispute.
82
82
83
-
## Development and Testing
83
+
## Developer Notes
84
84
85
85
We have [a quick Vagrant-based setup](https://github.com/ReinProject/devsetup) that gives you a virtual machine with the python-rein client, Causway server and its Bitcoin Core (testnet) node all configured to work together. Testing usually involves creating users and walking through jobs so a virtual machine that has all components going, even allowing payments to be sent is very helpful.
86
86
87
-
Tests are run using nose:
87
+
To generate or update pot files for translation, run the following from the root of the repo:
88
88
89
-
$ nosetests
89
+
xgettext.pl rein/cli.py rein/lib/*.py
90
+
91
+
## Testing
92
+
93
+
We have [a quick Vagrant-based setup](https://github.com/ReinProject/devsetup) that gives you a virtual machine with the python-rein client, Causway server and its Bitcoin Core (testnet) node all configured to work together. Testing usually involves creating users and walking through jobs so a virtual machine that has all components going, even allowing payments to be sent is very helpful.
94
+
95
+
Tests are run using nose, with the make file specifying two different test commands:
By default, the more limited "test" command should be used when a dedicated test-environment, such as the Vagrant set-up mentioned above, is not available. It currently runs all tests except the tests specified in "tests/test_cli.py".
116
+
106
117
Tox fails right now but does run flake so will be helpful for cleanup.
118
+
119
+
Be aware that new unit tests should be added to a file within the tests directory. Both the file name and the test method names should follow the naming convention "test_*".
0 commit comments