Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

6,997

Downloads of v 2.1.1:

394

Last Update:

23 Jan 2016

Package Maintainer(s):

Software Author(s):

  • Akira Sugiura

Tags:

tdd isolation mock mocks mocking fake fakes faking unittest unittesting

Prig - Open Source Alternative to Microsoft Fakes

This is not the latest version of Prig - Open Source Alternative to Microsoft Fakes available.

  • 1
  • 2
  • 3

2.1.1 | Updated: 23 Jan 2016

Downloads:

6,997

Downloads of v 2.1.1:

394

Maintainer(s):

Software Author(s):

  • Akira Sugiura

Prig - Open Source Alternative to Microsoft Fakes 2.1.1

This is not the latest version of Prig - Open Source Alternative to Microsoft Fakes available.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Requires Visual Studio

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Prig - Open Source Alternative to Microsoft Fakes, run the following command from the command line or from PowerShell:

>

To upgrade Prig - Open Source Alternative to Microsoft Fakes, run the following command from the command line or from PowerShell:

>

To uninstall Prig - Open Source Alternative to Microsoft Fakes, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade prig -y --source="'INTERNAL REPO URL'" --version="'2.1.1'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade prig -y --source="'INTERNAL REPO URL'" --version="'2.1.1'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install prig
  win_chocolatey:
    name: prig
    version: '2.1.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'prig' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.1.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller prig
{
    Name     = "prig"
    Version  = "2.1.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'prig':
  ensure   => '2.1.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator ferventcoder on 23 Jan 2016.

Description

Prig(PRototyping jIG) is a framework that generates a Test Double like Microsoft Fakes/Typemock Isolator/Telerik JustMock based on Unmanaged Profiler APIs. This framework enables that any methods are replaced with mocks. For example, a static property, a private method, a non-virtual member and so on.


tools\ChocolateyUninstall.ps1
# 
# File: ChocolateyUninstall.ps1
# 
# Author: Akira Sugiura ([email protected])
# 
# 
# Copyright (c) 2015 Akira Sugiura
#  
#  This software is MIT License.
#  
#  Permission is hereby granted, free of charge, to any person obtaining a copy
#  of this software and associated documentation files (the "Software"), to deal
#  in the Software without restriction, including without limitation the rights
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#  copies of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be included in
#  all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#  THE SOFTWARE.
#


'  Uninstalling Prig.vsix...'
$vscomntoolsPaths = gci env:vs* | ? { $_.name -match 'VS\d{3}COMNTOOLS' } | sort name -Descending | % { $_.value }
if (0 -eq $vscomntoolsPaths.Length) {
    Write-Error "'VsDevCmd.bat' is not found."
    exit 1805378044
}
$vsDevCmdPath = [System.IO.Path]::Combine($vscomntoolsPaths[0], 'VsDevCmd.bat')
if (![System.IO.File]::Exists($vsDevCmdPath)) {
    Write-Error "'VsDevCmd.bat' is not found."
    exit 1805378044
}
cmd /c ('" "{0}" & vsixinstaller /q /u:0a06101d-8de3-40c4-b083-c5c16ca227ae "' -f $vsDevCmdPath)
tools\ChocolateyInstall.ps1
# 
# File: ChocolateyInstall.ps1
# 
# Author: Akira Sugiura ([email protected])
# 
# 
# Copyright (c) 2015 Akira Sugiura
#  
#  This software is MIT License.
#  
#  Permission is hereby granted, free of charge, to any person obtaining a copy
#  of this software and associated documentation files (the "Software"), to deal
#  in the Software without restriction, including without limitation the rights
#  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#  copies of the Software, and to permit persons to whom the Software is
#  furnished to do so, subject to the following conditions:
#  
#  The above copyright notice and this permission notice shall be included in
#  all copies or substantial portions of the Software.
#  
#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#  THE SOFTWARE.
#


'  Installing Prig.vsix...'
$packageName = 'Prig'
$vsixUrl = 'https://visualstudiogallery.msdn.microsoft.com/d010ce67-9389-4c7b-89cc-b3a4234da716/file/190901/4/Prig.vsix'

Install-ChocolateyVsixPackage $packageName $vsixUrl

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Prig - Open Source Alternative to Microsoft Fakes 2.3.1 779 Sunday, August 14, 2016 Approved
Prig - Open Source Alternative to Microsoft Fakes 2.3.0 568 Friday, April 29, 2016 Approved
Prig - Open Source Alternative to Microsoft Fakes 2.2.0 454 Sunday, February 21, 2016 Approved
Prig - Open Source Alternative to Microsoft Fakes 2.1.1 394 Saturday, January 23, 2016 Approved
Prig - Open Source Alternative to Microsoft Fakes 2.1.0 425 Sunday, December 20, 2015 Approved
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha06 472 Friday, September 18, 2015 Exempted
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha05 432 Saturday, August 1, 2015 Exempted
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha04 470 Wednesday, May 27, 2015 Exempted
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha03 511 Monday, March 16, 2015 Exempted
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha02 467 Sunday, March 8, 2015 Exempted
Prig: Open Source Alternative to Microsoft Fakes 2.0.0-alpha01 449 Sunday, March 1, 2015 Exempted

Version 2.1.1

  • Update middleware. Boost is updated from 1.55.0 to 1.60.0.
  • Fixed infrastructure's bug. The function to parse PE header was wrong. This bug affected the environment installed Visual Studio 2015 or more. See also the comment of the issue.
  • Reduce environmental dependence. Until this improvement, Add-PrigAssembly command used absolute path instead of relative path or environment variable. So, any build will fail on another environment different from first setup without *.csproj modification.
  • Improve prig.exe help. Also, we maintain out wiki to explain it.

Version 2.1.0

  • Fixed #48: No longer need install.ps1 for NuGet. Clean up the content.
  • Fixed #49: Minimize the dependency to Chocolatey. Prig can support standalone installation via VSIX since this version.
  • Fixed #52: Support Visual Studio 2015 Update 1. Deal that the test execution engine is changed from vstest.executionengine to TE.ProcessHost.Managed.
  • Fixed some potentially bugs for prig command. It could not remove the symbolic link that has been already moved. Additionaly, improve some error messages.

Version 2.0.0

  • Fixed #31: Issue with out parameters.
  • Fixed #46: Support mocking DLL imports.
  • Against the comment-based help of Prig management commands, unified the definition of word because they were defined. See also our wiki.

Version 2.0.0-alpha06

  • Fixed #45: Support Visual Studio 2015
  • Fixed #44: Namespace reference not added for parameter that is array type
    [NOTICE] This issue has already been fixed in the family of V2. We just applied the fix to the family of V1.
  • Improve installation robustness. The ExecutionPolicy of PowerShell that is invoked during build tasks was sometimes unexpected, so modify to set explicit value.
  • Enhance supported signature. The unusual types that appear on the interface of a method is almost supported. For example, T[,][](T is a generic type parameter), List<DateTime[]>[,], out M[][,](M is a generic method parameter) and so on.
  • Prepare to support three or more out/ref parameters. By decreasing the dependencies of an indirection stub that profiler used, performance is also improved.

Version 1.1.1

  • [NOTICE] The family of v1 will be obsolete soon. We strongly recommend migrating to the family of the v2. About the way of the migration, please see our Wiki.
  • Support Visual Studio 2015.
  • Merge the fixes that were applied to the family of the v2.

Version 2.0.0-alpha05

  • Improve stability for the methods of the classes that are used on the boundary of application domains(e.g. AppDomain, BinaryReader, MemoryStream, Thread and so on).
  • Improve usability for the command to manage Prig a little(See also the Wiki).
  • Merge Infrastructure Bug Fix(See also Swathe issues #2)
  • Make the sequence that builds the indirection stub dll more efficient.

Version 2.0.0-alpha04

  • Update NUnit Test Adapter for Prig from based on 1.2.0 to based on 2.0.0.
  • [BREAKING CHANGE] To fix the following issues, alpha04 has lost compatibility with alpha03. Also, choco upgrade command cannot even work. I will publish the migration steps in this page as soon as possible.
  • Fixed #41: Error in remove prig assembly
  • Fixed #40: Test engine crashes while trying to execute a unit test without indirections context even when it doesn't use any stubs
  • Fixed #37: Suggestion add prig files as Copy If Newer to output directory
  • Fixed #33: Make framework assemblies private.
  • Implemented Experimentally #31: Issue with out parameters
  • Merge Infrastructure Enhancement(See also Swathe issues #1)
  • Fixed #36: If an assembly is added-removed multiple times there is duplicated prebuild steps
  • Fixed #35: Rebuilding after .prig file had types removed still contains removed types in prig assembly
  • Fix error when enabling Test Adapter and no vstest running
  • Fix more generation issues
  • Response to Strange Behavior. Depending on the replacing method, the static method of the infrastructure is sometimes called before initializing the field of the type. For example, you will find the behavior if you try a sample of Generics with Prig v2.0.0-alpha03 in Visual Studio integrated environment. It seems very strange behavior, but we have to consider that in this layer.

Version 2.0.0-alpha03

  • Improve stability a little. Support the test runners that have never been able to run. The test runners like NUnit(GUI)/xUnit.net/MbUnit couldn't even start up until now(They were raising ExecutionEngineException).

Version 2.0.0-alpha02

  • Fixed #29: Support Chocolatey v0.9.9.

About more previous versions, please see https://github.com/urasandesu/Prig/releases.


This package has no dependencies.

Discussion for the Prig - Open Source Alternative to Microsoft Fakes Package

Ground Rules:

  • This discussion is only about Prig - Open Source Alternative to Microsoft Fakes and the Prig - Open Source Alternative to Microsoft Fakes package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Prig - Open Source Alternative to Microsoft Fakes, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus