2010년 4월 25일 일요일

HMUnit ver0.95

HMUnit ver0.95
Test Case sorting
Stack trace improve...
http://www.box.net/shared/p69zr61ddn

2010년 4월 20일 화요일

HMUnit ver0.94

Variable Test
Variable Type Test Support
Test Terminate throw input Supported "S+[Enter]"
few bug fixed

http://www.box.net/shared/9lcdugi8i0



TODO
TestSuite setup/teardown
XML output
Custom Assert
HRESULT Assert
Floating-Point Assert
Death Assert
Catching Failures current and all thread
Logging Additional Information
Multithread execution
Event Listeners
print_time
indentation
Temporarily Disabling Tests
repeat test
shuffle test
Turning Assertion Failures into Break-Points
Suppressing Pop-ups Caused by Exceptions

2010년 4월 19일 월요일

HMUnit ver0.93

Minor bug fix

http://www.box.net/shared/tlisqamhml

2010년 4월 18일 일요일

HMUnit ver0.92

some asserts added
#define AssertFail() AssertFail(__FILE__, __LINE__)
#define AssertTrue(X) assertTrue(__FILE__, __LINE__, #X, X)
#define AssertFalse(X) assertFalse(__FILE__, __LINE__, #X, X)
#define AssertNotNull(X) assertNotNull(__FILE__, __LINE__, #X, X)
#define AssertEqual(X,Y) assertEqual(__FILE__, __LINE__, #X, #Y,X,Y)
#define AssertNotEqual(X,Y) assertNotEqual(__FILE__, __LINE__, #X, #Y,X,Y)

#define AssertAnyThrow(X) try {X;assertAnyThrow(__FILE__, __LINE__, #X);}catch(...) {}

and stacktrace printing have been added.
So you can know how these failure or execption happen

http://www.box.net/shared/tq3emf5ki2

2010년 4월 13일 화요일

HMUnit ver0.91

It is now integrated with google mock

#include
#include "HMRunner.h"

int main(int argc, char** argv) {
::testing::GTEST_FLAG(throw_on_failure) = true;
::testing::InitGoogleMock(&argc, argv);
HMRunner* runner = new HMRunner();
return runner->run(argc,argv);
}

http://www.box.net/shared/4zig0780z5

2010년 4월 12일 월요일

HMUnit ver0.9

C++ Unit Test framework which allow IDE(Visual Studio) to enable Autocomplete and suggestion etc.
Because most C++ Unit Test Famework use intensive macro IDE and other tools can not be used with Unit Test Framework.

With HMUnit you can use Autocomplete and suggestion. Also you can use refactoring tools such as 'Refactor'

Usage is very simple.
include
#include "Runner.h" // for run
//in main() function
int main(int argCount, char** argVariable) {
new Runner()->run(argCount, argVariable);
}
// you can run it with empty parameter to run all or testcase names with ; separated to run testcases

//in test.cc file
//include next
#include "HMTest.h" // for test
//define fixture
class AFixture :public HMTest {

virtual void setup() {
cout << "setup \n"; } virtual void teardown() { cout << "teardown \n"; } }; //write testcase // write test name after 'namespace' // put fixture name right after public namespace testEqualsOneTwo {class UseFixtureOf : public AFixture { virtual void run() {
AssertEqual(1,2); // put some test. Autocomplete, suggestion and refactoring is work.
}}registerIt;}



download it from



http://www.box.net/shared/bjf64soick