This file contains hidden or 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
getToken() { | |
this.adalSrv.context.acquireToken(environment.powerBIEndpoint, (error, token) => { | |
if (error || !token) { | |
// TODO: Handle error obtaining access token | |
console.error('ERROR:\n\n' + error); | |
return; | |
} | |
//Get available reports in the group | |
this.adalSrv.getReportsInGroup(environment.groupId).subscribe(res=>{ | |
// select the first report among it. |
This file contains hidden or 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
getToken() { | |
this.adalSrv.context.acquireToken(environment.powerBIEndpoint, (error, token) => { | |
if (error || !token) { | |
// TODO: Handle error obtaining access token | |
console.error('ERROR:\n\n' + error); | |
return; | |
} | |
// Get available dashboards | |
this.adalSrv.getDashboardsInGroup(environment.groupId).pipe(mergeMap((res, ind) => { | |
// select the first among the available dashboards |
This file contains hidden or 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
dotnet test <Path to *.csproj file> --results-directory:<Test Result directory> --collect:"Code Coverage" |
This file contains hidden or 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
<ModulePaths> | |
<Exclude> | |
<ModulePath>.*Moq.dll</ModulePath> | |
<ModulePath>.*GenFu.dll</ModulePath> | |
</Exclude> | |
</ModulePaths> |
This file contains hidden or 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
<UserProfile>\.nuget\packages\microsoft.codecoverage\<version>\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:<xml file name with Path>.coveragexml <path to coverage file> | |
# Eg: C:\Users\krishnamohan\.nuget\packages\microsoft.codecoverage\15.9.0\build\netstandard1.0\CodeCoverage\CodeCoverage.exe analyze /output:d:\MyTestOutput.coveragexml d:\SomeName.coverage |
This file contains hidden or 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
dotnet <UserProfile>\.nuget\packages\reportgenerator\<version>\tools\netcoreapp2.1\ReportGenerator.dll "-reports:<Coveragexml file path>" "-targetdir:<path to coverage report>" | |
<# | |
Eg: dotnet C:\Users\krishnamohan\.nuget\packages\reportgenerator\4.1.10\tools\netcoreapp2.1\ReportGenerator.dll "-reports:d:\MyTestOutput.coveragexml" "-targetdir:d:\coveragereport" | |
#> |
This file contains hidden or 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
dotnet test <Path to .csproj file> --settings:<Path to .runsettings file> |
This file contains hidden or 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
param( | |
[Parameter(Mandatory=$true)] | |
[string]$testProjectPath, | |
[Parameter(Mandatory=$true)] | |
[string]$testSettingsPath, | |
[Parameter(Mandatory=$true)] | |
[string]$testResultsFolder | |
) | |
<# |
This file contains hidden or 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
var video = document.createElement("video"); | |
var canvasElement = document.getElementById("canvas"); | |
var canvas = canvasElement.getContext("2d"); | |
var loadingMessage = document.getElementById("loadingMessage"); | |
var outputContainer = document.getElementById("output"); | |
var outputMessage = document.getElementById("outputMessage"); | |
var outputData = document.getElementById("outputData"); | |
function drawLine(begin, end, color) { | |
canvas.beginPath(); |
This file contains hidden or 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
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$goodCommit = $( Read-Host "Good commit hash, please" ), | |
[Parameter(Mandatory=$true)] | |
[string]$badCommit = $( Read-Host "Bad commit hash, please" ), | |
[Parameter(Mandatory=$true)] | |
[string]$testProjectPath = $( Read-Host "Test project path, please" ) | |
) | |
Write-Host $goodCommit $badCommit $testProjectPath | |
try |