Bitcoin Forum
May 11, 2024, 12:45:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [RFC] Bitcoin QA : Continuous integration, testing robot  (Read 1130 times)
davout (OP)
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


1davout


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

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 :

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

 - 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]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!