Bitcoin Forum
April 24, 2018, 05:15:05 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: [RFC] Bitcoin QA : Continuous integration, testing robot  (Read 1000 times)
Offline Offline

Activity: 1372
Merit: 1002


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!