Author

Topic: Unit tests? (Read 1494 times)

hero member
Activity: 868
Merit: 1008
March 09, 2011, 04:05:49 PM
#9
I took a look at that other refactoring effort.  In light of that, I think I may be better off not worrying about master branch adoption and just carry on ...adopting changes from the master branch as they happen.  The thought of trying to get things compiling on MSVC++ isn't very appealing to me.  I want to split up the ui, miner, peer and wallet and enhance what the wallet can do (automated encryption and backups, etc).  I also have some ideas about the UI to make it better for novices (and working with the native ObjC/Xcode will facilitate that).  I also would like each of these components to be able to be statically or dynamically linked via well defined, C based APIs.  And, I'd like them to each have standalone versions with google protocol buffers for communications.  Lot's of ideas, but need to focus on one or two for now.
hero member
Activity: 868
Merit: 1008
March 09, 2011, 03:52:46 PM
#8
Somebody did that a few months ago (theres a message here in the forums SOMEWHERE...)

If I recall correctly, after he was done he found that it wouldn't compile on Windows any more.
Not encouraging :=( Can you recall any keywords that might help me find it?

Steve, what platform are you compiling on?

Mac OSX 10.6.6.
legendary
Activity: 2506
Merit: 1010
March 09, 2011, 01:01:18 AM
#7
I've been thinking about splitting out the files, too. No functional changes, just moving things around.

Somebody did that a few months ago (theres a message here in the forums SOMEWHERE...)

This?
  https://bitcointalksearch.org/topic/bitcoin-codebase-cleaned-should-adopt-2244
member
Activity: 98
Merit: 20
March 08, 2011, 10:05:44 PM
#6
Somebody did that a few months ago (theres a message here in the forums SOMEWHERE...)

If I recall correctly, after he was done he found that it wouldn't compile on Windows any more.
Not encouraging :=( Can you recall any keywords that might help me find it?

Steve, what platform are you compiling on?
legendary
Activity: 1652
Merit: 2311
Chief Scientist
March 08, 2011, 09:20:53 PM
#5
I've been thinking about splitting out the files, too. No functional changes, just moving things around. I think that might help its adoption into the main trunk.

Somebody did that a few months ago (theres a message here in the forums SOMEWHERE...)

If I recall correctly, after he was done he found that it wouldn't compile on Windows any more.

member
Activity: 98
Merit: 20
March 08, 2011, 09:17:22 PM
#4
Not that I've found.  I'm in the process of refactoring the code (one h/cpp per class, etc).  I also grabbed googletest and plan to add a few unit tests to get the ball rolling.  The refactoring part might be a hinderance to adoption in the master branch (due to the large amount of change), but I do plan to keep it updated with the master.
I haven't used googletest. How does it compare to cppunit?

I've been thinking about splitting out the files, too. No functional changes, just moving things around. I think that might help its adoption into the main trunk.

hero member
Activity: 868
Merit: 1008
March 08, 2011, 04:55:06 PM
#3
Hi,

Are there any unit tests, or testbeds of any kind, for Bitcoin?

Not that I've found.  I'm in the process of refactoring the code (one h/cpp per class, etc).  I also grabbed googletest and plan to add a few unit tests to get the ball rolling.  The refactoring part might be a hinderance to adoption in the master branch (due to the large amount of change), but I do plan to keep it updated with the master.
hero member
Activity: 588
Merit: 500
March 07, 2011, 11:37:18 PM
#2
I don't know about unit tests, but there's a whole test network. Run the official client with -testnet option to use it.
member
Activity: 98
Merit: 20
March 07, 2011, 11:28:53 PM
#1
Hi,

Are there any unit tests, or testbeds of any kind, for Bitcoin?
Jump to: