<commit_before>New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults
New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults\Report
New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults\Report\History

.\nuget install OpenCover -o .\tools -ExcludeVersion
.\nuget install xunit.runner.console -o .\tools -ExcludeVersion

& "$PSScriptRoot\tools\OpenCover\tools\OpenCover.Console.exe" -target:`"$PSScriptRoot\tools\xunit.runner.console\tools\xunit.console.x86.exe`" -targetargs:"`"`"$PSScriptRoot\BikeTracker.XTests\bin\Debug\BikeTracker.XTests.dll`"`" -noshadow -appveyor" -output:$PSScriptRoot\TestResults\TestResults.xml -register:user -excludebyattribute:`"*.ExcludeFromCodeCoverage*`" -coverbytest:*.XTest.dll -filter:`"+[Bike*]* -[Bike.Tests*]* -[Bike.XTests*]*`"

npm install
npm install -g karma-cli

Set-Location -Path $PSScriptRoot\BikeTracker

karma start --single-run

Set-Location -Path $PSScriptRoot

if (Test-Path Env:\APPVEYOR)
{
	$wc = New-Object 'System.Net.WebClient'
	$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\BikeTracker\Scripts\tests\results\*.xml))

	.\nuget install coveralls.io -o .\tools -ExcludeVersion
	& "$PSScriptRoot\tools\coveralls.io\tools\coveralls.net.exe" --opencover "$PSScriptRoot\TestResults\TestResults.xml" --full-sources
}
else
{
	.\nuget install ReportGenerator -o .\tools -ExcludeVersion
	& "$PSScriptRoot\tools\ReportGenerator\tools\ReportGenerator.exe" -reports:.\TestResults\TestResults.xml -targetdir:.\TestResults\Report -historydir:.\TestResults\Report\History
}<commit_msg>Updated test script to give the right path for npm.<commit_after>New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults
New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults\Report
New-Item -ItemType Directory -Force -Path $PSScriptRoot\TestResults\Report\History

.\nuget install OpenCover -o .\tools -ExcludeVersion
.\nuget install xunit.runner.console -o .\tools -ExcludeVersion

& "$PSScriptRoot\tools\OpenCover\tools\OpenCover.Console.exe" -target:`"$PSScriptRoot\tools\xunit.runner.console\tools\xunit.console.x86.exe`" -targetargs:"`"`"$PSScriptRoot\BikeTracker.XTests\bin\Debug\BikeTracker.XTests.dll`"`" -noshadow -appveyor" -output:$PSScriptRoot\TestResults\TestResults.xml -register:user -excludebyattribute:`"*.ExcludeFromCodeCoverage*`" -coverbytest:*.XTest.dll -filter:`"+[Bike*]* -[Bike.Tests*]* -[Bike.XTests*]*`"

Set-Location -Path $PSScriptRoot\BikeTracker

npm install
npm install -g karma-cli

karma start --single-run

Set-Location -Path $PSScriptRoot

if (Test-Path Env:\APPVEYOR)
{
	$wc = New-Object 'System.Net.WebClient'
	$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\BikeTracker\Scripts\tests\results\*.xml))

	.\nuget install coveralls.io -o .\tools -ExcludeVersion
	& "$PSScriptRoot\tools\coveralls.io\tools\coveralls.net.exe" --opencover "$PSScriptRoot\TestResults\TestResults.xml" --full-sources
}
else
{
	.\nuget install ReportGenerator -o .\tools -ExcludeVersion
	& "$PSScriptRoot\tools\ReportGenerator\tools\ReportGenerator.exe" -reports:.\TestResults\TestResults.xml -targetdir:.\TestResults\Report -historydir:.\TestResults\Report\History
}
{'fraction_non_alphanumeric': 0.15377588306942752, 'fraction_numerical': 0.001218026796589525, 'mean_word_length': 5.186440677966102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6549621', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1110, 'n_words': 183}