pitepian 2007-3-27 13:31
如何将CPPUNIT结合CruiseControl.NET 使用??
因为要配合CruiseControl.NET 使用,而CruiseControl.NET 目前只有nunit插件,但想使用CPPUNIT,有没有办法将cppunit象nunit那样整合到CruiseControl.NET 里面呢???
cwj007 2007-4-10 11:18
你是否知道.net下如何调用win32KPI与dll,如果知道,这个问题就不大了,下面是一个例子
//在C#中使用WINDOWS系统的动态链接库,这样可以实现动态链接库的功能,使用的关键字extern
使用的方法如下例程:
using System;
using System.Runtime.InteropServices;
class Test
{
//调用WINDOWS 核心动态链接库
[DllImport("User32.dll")]
//声明外部方法,
public static extern int MessageBox(int h,string m,string c,int type);
//在主函数中应用外布的系统函数
public static int Main()
{
string message;
Console.Write("Enter the message:");
message = Console.ReadLine();
return MessageBox(0,message,"importing Message Box",0);
}
}
//当然使用这种方法也可以调用普通的功能函数,但是在调用的过程中会使速度减慢,所以不要在这种//情况下使用
shengxiang1984 2008-11-28 09:31
我现在就遇到这个问题了,就是让CruiseControl 自动Merge Cppunit 的report. 对于我而言,比较难解决