使用NUnit和Nuget搭配竹云
我正在尝试为.Net项目在竹云(而不是竹服务器)上创建一个计划:使用NUnit和Nuget搭配竹云,nuget,nunit,bamboo,Nuget,Nunit,Bamboo,我正在尝试为.Net项目在竹云(而不是竹服务器)上创建一个计划: 从Bitbucket签出 Nuget获得所有包 MSBuild编译解决方案 NUnit运行单元测试 1) 3)很简单,但我不知道如何创建运行Nuget和NUnit的任务。似乎您首先必须在构建代理上安装可执行文件。我找到了关于如何在Linux上实现这一点的文档,但没有找到适用于Windows的文档 如何使用竹云创建Nuget和NUnit任务?我将工作分为4个任务: 源代码签出 如你所料。无论如何,这是作业中的默认任务 下载NuGet
如何使用竹云创建Nuget和NUnit任务?我将工作分为4个任务:
Invoke-WebRequest -Uri 'http://nuget.org/nuget.exe' -OutFile '.\nuget.exe'
nuget.exe restore
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<!-- Allow NuGet to download missing packages -->
<add key="enabled" value="True" />
<!-- Automatically check for missing packages during build in Visual Studio -->
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="Syncfusion" value="http://nuget.syncfusion.com/xamarin/" />
</packageSources>
<!-- Used to specify which one of the sources are active -->
<activePackageSource>
<!-- this tells only one given source is active -->
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
<!-- this tells that all of them are active -->
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
感谢您展示如何加载Nuget软件包!但是,您没有说明如何运行NUnit测试,然后评估测试结果。因为我承认我还没有完成这一部分。。。一点也不重要,因为我还没有决定最终使用什么。我主要从事Xamarin开发:但是,Atlassian自己的文档将您发送到: