Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

make new common tests warnings until repos have opted-in #103

Closed
TravisEz13 opened this issue Feb 8, 2017 · 1 comment
Closed

make new common tests warnings until repos have opted-in #103

TravisEz13 opened this issue Feb 8, 2017 · 1 comment
Assignees

Comments

@TravisEz13
Copy link
Member

There should be a file in each repo that says which common tests the repo has passed. Those are treated as an error. Once someone gets that test passing they add the test to the file so that regressions will cause a failure.

@TravisEz13
Copy link
Member Author

You can find what test is currently running using this code

function Get-PesterItName
{

  $itStackItem = (Get-PSCallStack).Where{$_.Command -eq 'It'}
  $itArgumentNameValues = $itStackItem.Arguments.TrimStart('{',' ').TrimEnd('}',' ') -split '\s*,\s*'
  $name = ($ArgumentNameValues.Where{ $_ -like 'name=*'} -split '=')[-1]
  Write-Verbose "gin: itname: $name" -Verbose
  return $name
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant