Add support for passing a PesterConfiguration object to PowerShellBuild
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Ativa
- Stack de tecnologia
- powershell
- Domínio
- testing
Direção de pesquisa
Comece rastreando como PowerShellBuild invoca o Pester e como as opções existentes de $PSBPreference.Test são aplicadas. Revise o valor proposto de $PSBPreference.Test.Configuration e os exemplos de PesterConfiguration e, em seguida, resolva a precedência para caminhos e outras configurações. A tarefa estará concluída quando os usuários puderem fornecer uma configuração e o comportamento de teste padrão pretendido continuar claro e coberto.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Currently PowerShellBuild accepts several options to control how Pester is invoked through the $PSBPreference variable. However, there are more Pester options available if you go the "advanced" route and pass in a [PesterConfiguration] object.
You can generate a configuration a few different ways...
$config = New-PesterConfiguration
$config = [PesterConfiguration]::Default
$config = [PesterConfiguration]::new()
We could support all Pester options in an easier way than implementing $PSBPreference settings for each of them individually by allowing users to provide their own Pester configuration like so...
# file: psakeFile.ps1
Properties {
$PSBPreference.Test.Configuration = New-PesterConfiguration -Hashtable @{
# Change defaults as needed. For example...
Run = @{
SkipRemainingOnFailure = 'Run'
}
}
}
There are some considerations though. For example, the advanced option allows providing multiple paths. Should PowerShellBuild be opinionated and aim to maintain the current test behavior by default? If PowerShellBuild overrides properties like Run.Path, should the user be allowed to change that? How so?
Maybe other values from $PSBPreference.Test should be used to override the user-supplied [PesterConfiguration] and if they want to override those defaults, they should do it by updating the corresponding $PSBPreference.Test.* property?
- Linguagem predominante
- PowerShell
- Estrelas
- 145
- Forks
- 27
- Merge médio
- 2h 32min
- PRs com merge (30d)
- 20
Preparar o ambiente
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de psake/PowerShellBuild
-
Nothing tests the Build-PSBuildUpdatableHelp branch that deletes a consumer's output directoryAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
psake/PowerShellBuild#218 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
psake/PowerShellBuild#211 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
CI: Install the built module from a local repository to verify install-time dependency behaviourAbertaenhancement github_actions
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 68/100
psake/PowerShellBuild#229 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
psake/PowerShellBuild#222 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 68/100
psake/PowerShellBuild#221 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de psake/PowerShellBuild
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
melgarafael/DeskcommCRM#1811 ·
Mantenedores costumam responder em até 1 dia
-
agent-reported area/browser bug good first issue hacktoberfest help wanted P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 91/100
Mantenedores costumam responder em até 2 dias
-
area: tests perceived difficulty: 2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Nitjsefnie-Harness-Commons/daedalus#1255 ·
Mantenedores costumam responder em até 1 dia
-
area:casework bug criticality:p3 triage:needs-implementation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
registrystack/registry-stack#1623 ·
Mantenedores costumam responder em até 1 dia