Skip to content

Commit

Permalink
AU: 2 updated - cacher unit-test-boilerplate-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Jul 3, 2018
1 parent 5aa0921 commit 3554a55
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion automatic/cacher/cacher.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>cacher</id>
<version>1.5.10</version>
<version>1.5.11</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/cacher</packageSourceUrl>
<owners>AdmiringWorm, </owners>
<title>Cacher</title>
Expand Down
4 changes: 2 additions & 2 deletions automatic/cacher/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
url = 'https://s3.amazonaws.com/download.cacher.io/Cacher%20Setup%201.5.10.exe'
url = 'https://s3.amazonaws.com/download.cacher.io/Cacher%20Setup%201.5.11.exe'
softwareName = 'Cacher*'
checksum = '59f8cd57a9cf45e27b37040e8cf62ac7bc4ee35a1f1328c8faf9b8bdbc189f97e6505f8ee06896fd2f2c2b5dbf06baa650756542d6fe2f941134b985a6011e99'
checksum = 'c02284d141acd9dab9442ba33f0d14a1a2ee486213658043b80618a18085b17ed3223f4a476e01cdcf3a5c935202709186a4e8edceb582228924d8b724980af0'
checksumType = 'sha512'
silentArgs = '/S'
validExitCodes = @(0)
Expand Down
3 changes: 2 additions & 1 deletion automatic/unit-test-boilerplate-generator/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# ![Unit Test Boilerplate Generator Changelog](https://img.shields.io/badge/Unit%20Test%20Boilerplate%20Generator-Package%20Changelog-blue.svg?style=for-the-badge)

## UPCOMING
## Version: 1.9.0 (2018-07-03)
- Initial implementation of the unit-test-boilerplate-generator chocolatey package

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The extension has been downloaded from visual studio gallery <>
The extension has been downloaded from visual studio gallery <https://marketplace.visualstudio.com/items?itemName=RandomEngy.UnitTestBoilerplateGenerator>
and can be verified like this:

1. Download <>
1. Download <https://randomengy.gallerycdn.vsassets.io/extensions/randomengy/unittestboilerplategenerator/1.9.0/1530515413298/Unit_Test_Boilerplate_Generator_v1.9.0.vsix>
2. Then use one of the following methods to obtain the checksum
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'

checksum type:
checksum:
checksum type: sha256
checksum: C65EA835728955148A8CDBD3956251521A4CC0E34010A6E6A3ABD7110A030935

The file 'LICENSE.txt' has been obtained from <https://github.com/Microsoft/UnitTestBoilerplateGenerator/blob/46b546e65c20786ffdcba04a6011b638f79e6d25/LICENSE>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$parameters = @{
PackageName = $env:ChocolateyPackageName
File = "$toolsPath\"
File = "$toolsPath\Unit_Test_Boilerplate_Generator_v1.9.0.vsix"
}

Install-VisualStudioVsixExtension @parameters
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$parameters = @{
PackageName = $env:ChocolateyPackageName
VsixId = ''
VsixId = 'UnitTestBoilerplate.RandomEngy.ca0bb824-eb5a-41a8-ab39-3b81f03ba3fe'
}

Uninstall-VisualStudioVsixExtension @parameters
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>unit-test-boilerplate-generator</id>
<version>0.0</version>
<version>1.9.0</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/unit-test-boilerplate-generator</packageSourceUrl>
<owners>AdmiringWorm</owners>
<title>Unit Test Boilerplate Generator</title>
Expand All @@ -19,8 +19,7 @@
<tags>unit-test-boilerplate-generator visual-studio-extension vsix development unit-tests generation</tags>
<summary>Generates a unit test boilerplate from a given C# class</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description>
Generates a unit test boilerplate from a given C# class, setting up mocks for all dependencies and test outlines for all public methods.
<description><![CDATA[Generates a unit test boilerplate from a given C# class, setting up mocks for all dependencies and test outlines for all public methods.
Test frameworks supported:
- Visual Studio
Expand All @@ -40,20 +39,18 @@ Dependency injection modes supported:
Right click an item in Solution Explorer and choose "Create Unit Test Boilerplate" .
![Before Screenshot](BeforeScreenshot.png)
![Before Screenshot](https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/BeforeScreenshot.png)
This will create a test class in the same relative path as the class in a specified unit test project.
All the dependencies are mocked and saved as fields which are created fresh for each test via [TestInitialize]. In addition, all public methods
on the tested class are set up with a test method outline:
![After Screenshot](AfterScreenshot.png)
![After Screenshot](https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/AfterScreenshot.png)
Each mocking framework has its own pattern.
</description>
<releaseNotes>
[Software Changelog](https://github.com/Microsoft/UnitTestBoilerplateGenerator/blob/master/CHANGELOG.md#)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/unit-test-boilerplate-generator/Changelog.md)
</releaseNotes>
]]></description>
<releaseNotes>[Software Changelog](https://github.com/Microsoft.UnitTestBoilerplateGenerator/blob/master/CHANGELOG.md#)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/unit-test-boilerplate-generator/Changelog.md)</releaseNotes>
<dependencies>
<dependency id="chocolatey-visualstudio.extension" version="1.7.0" />
</dependencies>
Expand Down

0 comments on commit 3554a55

Please sign in to comment.