<commit_before>param (
	[string]$configuration = "Release"
)
. "$(resolve-path .\packages\nspec.*\tools\NSpecRunner.exe)" --formatter=XmlFormatter Winston.Test\bin\$configuration\Winston.Test.dll > nspec_results.xml
[xml]$res = Get-Content .\nspec_results.xml
foreach($c in $res.Contexts.Context) {
    $spec = $c.Context.Specs.Spec
    foreach($s in $spec) {
        $name = "$($c.Name) $($s.Name)"
        $status = $s.Status
        Add-AppveyorTest -Name $name -Outcome $status
    }
}<commit_msg>Add missing appveyor test update<commit_after>param (
	[string]$configuration = "Release"
)

function NSpec {
    . "$(resolve-path .\packages\nspec.*\tools\NSpecRunner.exe)" --formatter=XmlFormatter Winston.Test\bin\$configuration\Winston.Test.dll > nspec_results.xml
    [xml]$res = Get-Content .\nspec_results.xml
    foreach($c in $res.Contexts.Context) {
        $spec = $c.Context.Specs.Spec
        foreach($s in $spec) {
            $name = "$($c.Name) $($s.Name)"
            $status = $s.Status
            Add-AppveyorTest -Name $name -Outcome $status
        }
    }
}

function MSTest {
    mstest /testcontainer:"$(Resolve-Path **\bin\$configuration\Winston.Test.dll)" /resultsfile:TestResults\ci.trx
    [xml]$trx = Get-Content TestResults\ci.trx
    $results = $trx.TestRun.Results.UnitTestResult | select testName,outcome,duration
    foreach($r in $results) {
        Add-AppveyorTest -Name "$r.testName" -Outcome $r.outcome -Duration $r.duration
    }
}

NSpec
MSTest
{'fraction_non_alphanumeric': 0.15870880968392737, 'fraction_numerical': 0.0, 'mean_word_length': 3.168067226890756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '3993338', 'n_tokens_mistral': 525, 'n_tokens_neox': 501, 'n_words': 89}