なべしんのソフト工房
サイトについて プロフィール ソフトウエア ソフトウエア ダウンロードサービス




■ブログへのコメント
Footy2更新しました by:oubonuotas
Footy2更新しました by:初心者
Footy2更新しました by:青山
Footy2更新しました by:横田
Footy2更新しました by:横田




NabeUnit

Features

NabeUnit is a C++ unit testing framework. Basic ideas came from via "googletest" by Google, but this software doesn't include source code from any other open source project.

To know more about "googletest", visit: http://code.google.com/p/googletest/

NabeUnit is more simple than googletest. This test tool doesn't have many features, but I think unit test tool should be simple and easy to use.

NabeUnit is able to work under Windows platform. But I think you can change source code easily to run with your system.

Usage

NabeUnit is easy to define test code like "Google Test". You don't have to add prototype definition of the test, and register.
NABEUNIT_TEST_FUNC( MyFirstTest )
{
	// write your test code 
}


Following sample is test with user-defined test fixture.
class SimpleTestFixture : public NabeUnit::TestFixture
{
protected:
	virtual void SetUp()
	{
		m_nMyValue = 0;
	}

protected:
	int m_nMyValue;
};

NABEUNIT_FIXTURE_TEST_FUNC( SimpleTestFixture, MyValueAddTest )
{
	NABEUNIT_ASSERT_EQUALS( 0, m_nMyValue );
	m_nMyValue += 5;
	NABEUNIT_ASSERT_EQUALS( 5, m_nMyValue );
}

// more test codes..

Result

All test result will be written on your console like this:
NabeUnit

License

NabeUnit is provided under MIT license.

Download now!

Download from this server.