- move non-test classes to subdir
test-framework - added all test script into two sections to
pull-tester/rpc-tests.sh - updated readme
[QA] restructure rpc tests directory #6097
pull jonasschnelli wants to merge 6 commits into bitcoin:master from jonasschnelli:2015/05/rpc_test_organizing changing 45 files +125 −124-
jonasschnelli commented at 11:26 AM on May 2, 2015: contributor
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- jonasschnelli force-pushed on May 2, 2015
- laanwj added the label Tests on May 4, 2015
- jonasschnelli force-pushed on May 6, 2015
-
jonasschnelli commented at 12:36 PM on May 6, 2015: contributor
rebased
- jonasschnelli force-pushed on May 7, 2015
-
jonasschnelli commented at 8:26 PM on May 7, 2015: contributor
Fixed travis issue. Rebased.
- jonasschnelli force-pushed on May 7, 2015
- jonasschnelli force-pushed on May 7, 2015
-
sipa commented at 2:51 AM on May 8, 2015: member
No opinion.
-
jonasschnelli commented at 8:25 AM on May 8, 2015: contributor
The benefits of this pull is not just another type of structure instead it's a clean distinction between test classes/files and utility classes/files. At the moment you can't distinguish between a runnable test and a utility class within the folder
./qa/rpc-tests. Since #5981 it's even more mixed up. It's hard to get a overview of all possible test we have (thats why i extendedrpc-test.sh).Basically: it's a mess.
IMO messy qa/test setups end up in messy tests and bad test coverage. Therefore it should be clean at the root. This simplifies the test setup and allow upcoming contributors to reduce the learn-curve of how a test should be written.
-
sdaftuar commented at 6:41 PM on May 14, 2015: member
Concept ACK. I agree that the rpc-tests directory is a bit messy, and I have found it difficult in the past to just find all the tests that I can run. Making
rpc-tests.shbe a canonical place to put new scripts so others know to run them seems like a helpful thing which I plan to use.I don't have much opinion about how to best organize python code, but what you have done with the test_framework directory looks okay to me.
One thing I noticed -- I think
script_test.pyshould probably be commented out of the extended test scripts. Because it's just comparing behavior, it really doesn't make sense to run except with two different bitcoind binaries, which we don't have a way of doing in an automated way right now. If the test were to give an error, it would almost certainly mean that the test is itself broken, and it's extremely slow to run. -
gavinandresen commented at 6:46 PM on May 14, 2015: contributor
concept ACK, tidier is better.
-
theuni commented at 7:05 PM on May 14, 2015: member
concept ACK, this was in need of some organization for sure.
-
laanwj commented at 6:18 AM on May 18, 2015: member
Concept ACK, I like moving the utility functions to a python package so that the top-level files are runnable scripts (needs rebase, though).
-
64937fe51a
[QA] restructure rpc tests directory
* move non-test classes to subdir `test-framework`
-
extend rpc-tests.sh control script with non-travis tests 344e08ed16
-
update rpc-tests readme.md 00706a5436
- jonasschnelli force-pushed on May 18, 2015
- jonasschnelli force-pushed on May 18, 2015
-
pull-tester/rpc-tests.sh: allow passing throug of arguments 3e875b1bef
- jonasschnelli force-pushed on May 18, 2015
-
jonasschnelli commented at 1:31 PM on May 18, 2015: contributor
Fixed @sdaftuar's nit (disabled
script_test.py). Rebased. - jonasschnelli force-pushed on May 19, 2015
- jonasschnelli force-pushed on May 19, 2015
-
pull-tester/rpc-tests.sh: disable script_test.py test a85b2e221b
- jonasschnelli force-pushed on May 19, 2015
-
laanwj commented at 9:08 AM on May 21, 2015: member
It seems you forgot to update
rpcbind_test.pyfor the newpython-bitcoinrpcpath.Speaking of which - let's move the
bitcoinrpcdirectory directly intorpc-testsso that theAdd python-bitcoinrpc to module search pathhackery (in four places!) is no longer needed and we can just do:from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException... directly
-
7b7f258396
rpc-tests: remove python-bitcoinrpc directory
place authproxy.py at same level as other utility classes
-
jonasschnelli commented at 7:26 PM on May 21, 2015: contributor
Totally agreed. I just remove the
python-bitcoinrpccompletely and placed theauthproxy.pyfile directly into the newtest-frameworkfolder (it's not a submodule so it can be treated as normal utility class). Also fixed therpcbind_test.pyas mentioned by @laanwj - laanwj merged this on May 27, 2015
- laanwj closed this on May 27, 2015
- laanwj referenced this in commit c608b6daf9 on May 27, 2015
-
laanwj commented at 11:21 AM on May 27, 2015: member
@jonasschnelli Nice solution
- laanwj referenced this in commit 3f16971442 on Jul 2, 2015
- MarcoFalke locked this on Sep 8, 2021