-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove [Test] attribute from SpecificationSource method
This fix corrects an issue with updated test runners (e.g. the Visual Studio Test Runner & Resharper) where multiple instances of the same test appear within the discovered suite resulting in varying aberrant results.
- Loading branch information
Derek Greer
committed
Apr 23, 2019
1 parent
7e3075f
commit 2bc6a25
Showing
10 changed files
with
1,176 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ TestResults/ | |
PrecompiledWeb/ | ||
build/CommonAssemblyInfo.cs | ||
src/packages/ | ||
**/.vs | ||
artifacts | ||
lib | ||
*.gpState | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@echo off | ||
set FIND=C:\Windows\System32\find.exe | ||
set SUFFIX=%1 | ||
|
||
FOR /F "tokens=4,* USEBACKQ" %%G IN (`npx standard-version --dry-run ^| %FIND% "tagging"`) DO SET PRE_RELEASE_VERSION=%%G | ||
|
||
IF "%PRE_RELEASE_VERSION:~0,1%"=="v" ( | ||
set PRE_RELEASE_VERSION=%PRE_RELEASE_VERSION:~1% | ||
) | ||
|
||
if "%1"=="" ( | ||
set SUFFIX=alpha | ||
) | ||
|
||
setlocal EnableDelayedExpansion | ||
WHERE yarn >nul 2>&1 | ||
set YARN_AVAILABLE=%ERRORLEVEL% | ||
|
||
WHERE npm >nul 2>&1 | ||
set NPM_AVAILABLE=%ERRORLEVEL% | ||
|
||
IF "%YARN_AVAILABLE%" NEQ "0" ( | ||
ECHO The yarn command is not available. | ||
IF "%NPM_AVAILABLE%" EQU "0" ( | ||
SET /P "Input=Would you like to use npm to install yarn? (y/n):" | ||
IF "!Input!"=="y" ( | ||
call npm install yarn -g | ||
goto build | ||
) else ( | ||
GOTO error | ||
) | ||
) else ( | ||
GOTO :error | ||
) | ||
) | ||
|
||
REM Check that the version of standard-version supports dry-run | ||
call npx standard-version --help | %FIND% "dry-run" 1> nul 2> nul | ||
IF "%ERRORLEVEL%" NEQ "0" ( | ||
GOTO :standardVersionError | ||
) | ||
|
||
:build | ||
ECHO Building Prelease Version: %PRE_RELEASE_VERSION%-%SUFFIX% | ||
call yarn | ||
REM call yarn run setVersionSuffix %SUFFIX% | ||
REM call yarn run build:pre-release | ||
set "PreReleaseVersion=%PRE_RELEASE_VERSION%" & set "VersionSuffix=%SUFFIX%" & yarn run build:pre-release | ||
GOTO end | ||
|
||
:error | ||
ECHO Please run %~n0%~x0 again after installing yarn. | ||
|
||
:standardVersionError | ||
ECHO Please install the latest version of standard-version (see https://github.com/conventional-changelog/standard-version) | ||
ECHO. | ||
GOTO end | ||
|
||
:end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="nunit.framework" publicKeyToken="2638cd05610744eb" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-3.6.1.0" newVersion="3.6.1.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.NET.Test.Sdk" version="15.0.0" targetFramework="net462" /> | ||
<package id="Microsoft.TestPlatform.TestHost" version="15.0.0" targetFramework="net462" /> | ||
<package id="NUnit" version="3.6.1" targetFramework="net462" /> | ||
<package id="NUnit.ConsoleRunner" version="3.6.1" targetFramework="net452" /> | ||
<package id="NUnit3TestAdapter" version="3.7.0" targetFramework="net462" /> | ||
<package id="Microsoft.CodeCoverage" version="16.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.NET.Test.Sdk" version="16.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.TestPlatform.TestHost" version="16.0.1" targetFramework="net452" /> | ||
<package id="NUnit" version="3.11.0" targetFramework="net452" /> | ||
<package id="NUnit.ConsoleRunner" version="3.10.0" targetFramework="net452" /> | ||
<package id="NUnit3TestAdapter" version="3.13.0" targetFramework="net452" /> | ||
<package id="Should" version="1.1.20" targetFramework="net452" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.