???QtTest??????????????????
???????????? ???????[ 2013/7/15 14:22:40 ] ????????
????3????д??????????
??????????????????TestCase.h
#ifndef TEST_CASE_H
#define TEST_CASE_H
#include <QtTest/QtTest>
class CTestCase:public QObject
{
Q_OBJECT
public:
CTestCase();
virtual ~CTestCase();
private Q_SLOTS:
//????????1
void Test_Case1();
//????????2
void Test_Case2();
private :
int m_iRtn; //???η????
};
#endif //TEST_CASE_H
????????????????? TestCase.cpp
#include "TestCase.h"
CTestCase::CTestCase()
{
}
CTestCase::~CTestCase()
{
}
void CTestCase::Test_Case1()
{
//m_iRtn = test1();
//?????????????????0????????????????
QVERIFY(0==m_iRtn);
}
void CTestCase::Test_Case2()
{
//m_iRtn = test2();
//?????????????????1????????????????
QVERIFY(1==m_iRtn);
}
??????

???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44