Comments (7)
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.
from prig.
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/
from prig.
OMG 😱 I have never known that! I will try it and investigate your reporting problem. Thank you for the information!
from prig.
There are 2 issues actually:
- The prig test project won't compile on TC as @ngjermundshaug mentioned
- When we generate those assemblies locally (using VS), then commit those assemblies to code repository and reference them via "Add reference" in the prig test project then the whole thing compiles on TC. But another problem is that the test runner in TC does not enable the prig test adapter (or there is no test adapter at all). For this reason the tests are using original implementations instead of stubs. By enabling test adapter I mean clicking this: http://bit.ly/2jon8cz.
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).
from prig.
We have made it working with following steps:
- Prig generated assemblies and Prig native dll (that get installed as nuget packages but are not inthe nuget feed) are committed to code repository and then referenced manually with "Add reference" to proper projects
- Installed and registered Prig in VisualStudio which is running on the build agent
- Modify UnitTest build step not to use built-in test runner (e.g. VSTest), but instead use a CommandLine step. Reason is that prig needs to do some work before the tests are run. The command:
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
- Run the build and enjoy Prig on TeamCity
Thanks again for making Prig.
from prig.
I'm temporarily relieved to hear that you made it working 😌
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.
from prig.
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
from prig.
Related Issues (20)
- Support Run All HOT 4
- Problem debugging prig MSTests with ReSharper test runner HOT 4
- Prig test run crashing (when a nested static, unstubbed method is called) HOT 40
- MsTest: The method of generic type that has declaring type parameter excluding this cannot detour HOT 1
- MsTest: Test runner will crash when stubbing a shared member that shouldn't matter HOT 8
- Add Prig Assembly is failed immediately after installation
- Visual Studio 2017 support HOT 18
- From VS IDE unable to successfully run multiple test projects HOT 2
- Cannot uninstall Prig except for en-us locale environment
- Dotnet core support HOT 2
- Getting an error while buliding the project HOT 4
- How would i use this on CI HOT 1
- Stub a method of the parent type HOT 1
- install the prig without visual studio HOT 5
- Mocking not working at all under VS 2015 Professional (Windows 7 Pro SP1) HOT 1
- Cannot re-register after unregistering Prig
- Cannot target x86 architecture on a x64 machine
- Houston is anyone there? HOT 1
- This project is now dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prig.