BitShares Forum

Main => General Discussion => Topic started by: willaim on June 18, 2014, 07:44:46 pm

Title: could you use C++ Test as Unit Test tools?
Post by: willaim on June 18, 2014, 07:44:46 pm
hallo this is a public suggestion to III company. I have felt that 2 more c++ programmers have joined BTS development team and of course this is good news. However, it will take more times for "old" programmers to introduce new comers to understand codes. and i felt that no compresensive Unit Test cases are handled because of urgent launching date. BTS should have more than 99.999% stability since this is a real bank and exchange system. and it's well known some software disaster bugs are caused by non complete Unit Test.

so, how about C++ Test? this is a very good test system to help III to shoot most unit test bugs in the very beginning time with 24 hours running.

i hope you guys could think about this test tools; and i know microsoft is using similar automatical test tools to reduce unit test bugs.

Title: Re: could you use C++ Test as Unit Test tools?
Post by: bytemaster on June 18, 2014, 09:08:55 pm
hallo this is a public suggestion to III company. I have felt that 2 more c++ programmers have joined BTS development team and of course this is good news. However, it will take more times for "old" programmers to introduce new comers to understand codes. and i felt that no compresensive Unit Test cases are handled because of urgent launching date. BTS should have more than 99.999% stability since this is a real bank and exchange system. and it's well known some software disaster bugs are caused by non complete Unit Test.

so, how about C++ Test? this is a very good test system to help III to shoot most unit test bugs in the very beginning time with 24 hours running.

i hope you guys could think about this test tools; and i know microsoft is using similar automatical test tools to reduce unit test bugs.

This is the only thing that Dan N. is working on and I agree complete unit tests are a must.  We are actually designing the code to support better testing.

We obviously need a process in place that prevents any change from making its way into the repo that would cause a hard fork.   
Title: Re: could you use C++ Test as Unit Test tools?
Post by: darrenx on July 04, 2018, 02:30:45 am
How can I get the guide line of C++ unit test,just like " how to use test fixture in bitshare" ," how to test chain_bench".I had encounted more issues when I ran the unit tests.
Title: Re: could you use C++ Test as Unit Test tools?
Post by: abit on July 06, 2018, 09:59:24 pm
How can I get the guide line of C++ unit test,just like " how to use test fixture in bitshare" ," how to test chain_bench".I had encounted more issues when I ran the unit tests.
"chain_test" is used the most in BitShares.

Code: [Select]
make chain_test

tests/chain_test

tests/chain_test -t fee_tests