Open ngjermundshaug opened 7 years ago
I have never tested Prig in TeamCity, sorry. It seems too expensive for us who are open source developer.
However, Prig supports free CI environment like AppVeyor. The document possibly help you.
TeamCity is totally free as long as you have less than 20 build configurations per server! We use the free version in many projects to take care of building, testing and deploying our code (along with Octopus).
You should really check it out - https://www.jetbrains.com/teamcity/download/
OMG :scream: I have never known that! I will try it and investigate your reporting problem. Thank you for the information!
There are 2 issues actually:
So we need a way to let TeamCity replace the implementations with stubs before running the tests. What actually this option in VS ("Enable Test Adapter for ...") does behind the scenes?
EDIT: TC supports installing custom plugins so I believe there should be a way to create such a test adapter (as a plugin).
We have made it working with following steps:
cd Tests\PrigTests\bin\Release
prig run -process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" -arguments PrigTests.dll
Thanks again for making Prig.
I'm temporarily relieved to hear that you made it working :relieved:
One of the things you might notice is that Prig generated assemblies -- we call them Prig Assembly -- are sensitive than you expected. It will break by a trifling matter. For example, applying Windows Update, installing .NET service pack and so on(This is the reason that we decide to generate Prig Assembly on build time). So, when the committed Prig Assembly is not worked, you have to rebuild and commit them again.
Please contact me if there is anything.
Just an added note, I've got prig running on our Jenkins build server. My basic steps are to get tests compiling/running on your buildserver from the commandline first. Once they are running, you should easily be able to adapt to your CI system - especially if it supports the CLI (Powershell/Cmd).
Be sure to reference the wiki for pointers! https://github.com/urasandesu/Prig/wiki/AppVeyor-Support
Having difficulty making PRIG work under TeamCity (msbuild 2015)
[MSBuild output] ConnectorTests\ConnectorPrivateTest.cs(4,40): error CS0234: The type or namespace name 'Prig' does not exist in the namespace 'XXXXXXX.YYYY' (are you missing an assembly reference?) [C:\BuildAgent\work\e7ff6effff03f\xxxxx.yyyy.com\Tests\PrigTests\PrigTests.csproj]**
Can PRIG only be run in VS ?