Bitcoin Forum
October 27, 2016, 06:59:54 AM *
News: Latest stable version of Bitcoin Core: 0.13.0  [Torrent].
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: [RFC] Bitcoin QA : Continuous integration, testing robot  (Read 873 times)
Offline Offline

Activity: 1358


View Profile WWW
July 04, 2011, 10:54:31 AM

Recently Gavin pushed some first unit tests to the bitcoin source tree, which is really good and definitely needed.
It made me think though, that the unit tests are very low level, and that it would be really nice to also have "test bitcoin as a black box using JSPON-RPC calls" approach.

So I was thinking about starting a Rails app that does the following thing :

Each time a commit is pushed upstream
 - The code is fetched, and built
 - The low level unit tests are run and results recorded
 - If the build was successful, a defined wallet and blockchain dump are put in place
 - The client is launched and given the opportunity to re-scan
 - Behaviour tests are run (written in Ruby), for example :

class BasicTests < UnitTest
  test "should honor credentials" do
    response = Bitcoin::Client.rpc_call(wrong_credentials)
    assert_equal 401, response.status

 - Nice reporting and notifications are presented to developers and the public

So, my questions are :
 - Does anyone think this is desirable,
 - Would anyone be willing to contribute application code and tests code if I start and lead the project ?

That'll be all for now Smiley

Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!