<commit_before># Run the basic sets of tests using powershell
$vsversions = @("15.0", "14.0", "12.0")

# Set of tests to run
# AzurePublishing.Tests.UI are currently skipped.
$tests = @("JSAnalysisTests", "Nodejs.Tests.UI", "NodeTests","NpmTests", "ProfilerTests", "SharedProjectTests")

# Try to get the path to the vstest.console test runner
$selectedVsVersion = ''
$vstest =  ''
foreach($vsversion in $vsversions) {
	$path = "C:\Program Files (x86)\Microsoft Visual Studio $vsversion\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
	if (($selectedVsVersion -eq '') -and (Test-Path $path)) {
		$selectedVsVersion = $vsversion
		$vstest = $path
	}
}

if ($selectedVsVersion -eq '') {
	echo "Could not find valid vstest.console"
	return
}

$testFiles = $tests | % { ".\BuildOutput\Release$selectedVsVersion\Tests\$_.dll" }

& "$vstest" @args $testFiles<commit_msg>Pass setting flag to vstest for runtest.helper<commit_after># Run the basic sets of tests using powershell
$vsversions = @("15.0", "14.0", "12.0")

# Set of tests to run
# AzurePublishing.Tests.UI are currently skipped.
$tests = @("JSAnalysisTests", "Nodejs.Tests.UI", "NodeTests","NpmTests", "ProfilerTests", "SharedProjectTests")

# Try to get the path to the vstest.console test runner
$selectedVsVersion = ''
$vstest =  ''
foreach($vsversion in $vsversions) {
	$path = "C:\Program Files (x86)\Microsoft Visual Studio $vsversion\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
	if (($selectedVsVersion -eq '') -and (Test-Path $path)) {
		$selectedVsVersion = $vsversion
		$vstest = $path
	}
}

if ($selectedVsVersion -eq '') {
	echo "Could not find valid vstest.console"
	return
}

$testFiles = $tests | % { ".\BuildOutput\Debug$selectedVsVersion\Tests\$_.dll" }

& "$vstest" /settings:$(".\Build\default." + $selectedVsVersion + "Exp.testsettings") @args $testFiles
{'fraction_non_alphanumeric': 0.15663292488012787, 'fraction_numerical': 0.012786361214704315, 'mean_word_length': 5.038585209003215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7175792', 'n_tokens_mistral': 665, 'n_tokens_neox': 628, 'n_words': 160}