gallio

sonar with gallio and opencover, code coverage: 0%

試著忘記壹切 提交于 2020-01-06 06:47:20
问题 I'm using sonar to check my c# project. I would like to measure code coverage that's why i installed gallio and opencover. When I run soner-runner everything works fine, my unit test is performed, ... but the code coverage is 0% on the sonar web UI. do you know the reason why the code coverage is 0%? My solution, project and classes: (S) SonarTestSolution (P) ClassLibrary1 (C) Class1.cs (P) ClassLibrary1NUnitTest (C) Class1NUnitTest.cs content of Class1.cs: public class Class1 { public String

Step by step process for setting up Gallio and NbUnit within TeamCity

岁酱吖の 提交于 2020-01-05 04:08:10
问题 I have searched the internet and found a few references saying that Gallio and NbUnit can run within TeamCity as part of the build process. I am running my builds against the solutions files and need TeamCity to run all the test in the solution. Is there a step by step process for setting up Gallio and NbUnit within TeamCity anywhere? 回答1: You can do this through MSBuild <!-- Runs Tests --> <Gallio IgnoreFailures="true" Files="@(TestFiles)"> <Output TaskParameter="ExitCode" PropertyName=

running nunit tests (x86) with gallio

淺唱寂寞╮ 提交于 2019-12-25 01:46:17
问题 I am trying to run nunit tests with gallio. These tests run with nunit-console-x86.exe When I run them with nunit-console.exe, I am getting System.BadImageFormatException Running with Gallio.Echo.exe (installed the x86 bundle from gallio.org), I am getting the same exception. Is there a way to get gallio to use the nunit-console-x86.exe? I am running the command "C:\Program Files (x86)\Gallio\bin\Gallio.echo.exe" /r:IsolatedProcess "C:\projectdata.Tests.dll" and I am getting this exception:

Register a Gallio zip installation with TestDriven.Net

一世执手 提交于 2019-12-25 00:23:09
问题 I want to register a copy of the Gallio zip installation with TestDriven.Net. In another thread, a member has mentioned that the Gallio installer needs to run after the TD installer in order to register Gallio with TD. Unfortunately, I can't run the lastest Gallio installer per corporate policy. Is there a way around this problem? Thanks. Update: Manually editing the registry worked for me. On Windows XP, under HKEY_CURRENT_USER/Software/MutantDesign/TestDriven.NET/TestRunners, Add key Gallio

How do I get Gallio.echo to run MbUnit Tests?

为君一笑 提交于 2019-12-24 09:17:35
问题 I have MbUnit tests that run if I load them into MbUnit.GUI.exe, however when I try to execute them from the Gallio.echo command-line tool I get 0 test available. I then loaded the assemblies into the Gallio GUI and the tests do not show. I am missing something with the Gallio set-up and the documentation is lacking to put it mildly. Can anyone point me in the right direction? Thank you - Bruce 回答1: Make sure your MbUnit v2 tests are compiled with the same version of MbUnit v2 as is

Using Resharper Unit Test Runner for MSTest via Gallio

不打扰是莪最后的温柔 提交于 2019-12-23 14:49:27
问题 I am attempting to get the Resharper test runner to recognize my MSTest unit tests via Gallio. I have the following installed: VSTS 2005 8.0.50727.762 Resharper 4.1 Gallio 3.0.0.285 I am also running Windows XP x64. The unit test options only shows NUnit as being available. I am thinking that I must have some versioning wrong. Can someone point me in the right direction? Am I barking up the wrong tree and this is only works in VS2k8? UPDATE: Well I updated Gallio to GallioBundle-3.0.4.385

How to programmatically run unit tests with Gallio and MBUnit?

好久不见. 提交于 2019-12-23 09:00:16
问题 I'm trying to programmatically check my unit tests are passing as part of my deployment process. The application uses MBunit and Gallio for it's unit testing framework. Here's my code: var setup = new Gallio.Runtime.RuntimeSetup(); setup.AddPluginDirectory(@"C:\Program Files\Gallio\bin"); using (TextWriter tw = new StreamWriter(logFilename)) { var logger = new Gallio.Runtime.Logging.TextLogger(tw); RuntimeBootstrap.Initialize(setup, logger); TestLauncher launcher = new TestLauncher();

Debug Unit Tests using Resharper 7 for MBUnit throws an exception

最后都变了- 提交于 2019-12-11 16:33:27
问题 I have installed the Gallio Resharper Test Runner found at http://code.google.com/p/mb-unit/issues/detail?id=900#c9 Per the instructions at How to support MBUnit tests in Resharper 7. When I right click inside of a unit test and click "Run Unit Tests" the tests run just fine. However when I right click and then click "Debug Unit Tests" I get: Could not load file or assembly 'Gallio.ReSharperRunner71, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system

How do I ignore a test conditionally in mbUnit?

六眼飞鱼酱① 提交于 2019-12-10 23:25:03
问题 I'm using TeamCity to do automated builds of test and production. TeamCity runs our mbUnit 3.1 tests at the end of the process with Gallio. When running the test build, Gallio should try to execute tests against the test database server. However, when running a production build, these tests should not be run because TeamCity can't access the production database server (and if even if the production database was available, many tests would fail with unreleased code). How can I mark a test so

Gallio error : MSTest executable was not found

风流意气都作罢 提交于 2019-12-10 19:16:54
问题 I've got an annoying issue with Gallio when I try to analyse my VS2012 C# solution with my sonar-runner. When Gallio try to launch my unit test I can find this issue in the logs : [error] Assembly XXXX Cannot run tests because MSTest executable was not found I've already tried some propositions of solution exposed here and here (I have installed Agents for VS 2012 and I have added a registry key with the path of my VS2012 installation) but nothing seems to work. Thank you by advance for your