-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping test from inside the It block #1026
Conversation
OK, so the tests that failed locally, those relating to changlog and versioning passed in travis, but publish to GitHub failed in TeamCity. I cannot see why (no access to TC) so I will need some help. Few things remaining potentially for discussion, that could be included in this PR quite easily are
Any thought? Any recommended changes to the current implementation? I will welcome any reviews. Can anybody from the Pester crew comment on how do you see it? How likely is this PR to make it into Pester soonish? @nohwnd, anybody else? I'm working on big changes to dbachecks which I want to push out of the door this month, and if only possible, I'd like to use this new functionality already. Thanks your your time and help (and I do appreciate there is PSConfEU coming up very soon, so many people are rather busy). |
Just click login as guest, the build is public. It's not very obvious sorry. 1, 2. yeah that would be nice, Set-TestInconclusive should be deprecated in that case, and we need to offer a strategy for replacement. I am sorry but I cannot review your code at the moment, I am also preparing for the psconfeu and need to finish my talks that before comitting to someting else. In general the changes in this repo are merged rather slowly, especially if they concern public apis. Are you attending the conf?:) |
OK, I'll work something in for 1,2 and 3.
I realise a lot of people are on the conf, but not me. I've just got back
home. And anyway, I'm new to the whole powershell thing, so I only have
just learnt about the conference 2 weeks ago ;)
I'll see, if I learn some powershell this year, perhaps I'll come next year
;)
…On 15 April 2018 at 14:06, Jakub Jareš ***@***.***> wrote:
no access to TC
Just click login as guest, the build is public. It's not very obvious
sorry.
1, 2. yeah that would be nice, Set-TestInconclusive should be deprecated
in that case, and we need to offer a strategy for replacement.
3. Yes please, it only makes sense to add the function if it supports the
complete set of states.
I am sorry but I cannot review your code at the moment, I am also
preparing for the psconfeu and need to finish my talks that before
comitting to someting else. In general the changes in this repo are merged
rather slowly, especially if they concern public apis.
Are you attending the conf?:)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1026 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAHYMAAc6hziKqt5IVrPC5LYgaCL5FOcks5to0XQgaJpZM4TUcvK>
.
|
OK, so now I guess I will need some help with that v2. |
Can anybody help with making that powershell 2 test pass? |
I tried to reproduce. Tests under CI are run (as I understand) under I've run tests for the branch https://github.com/michalporeba/Pester/tree/skip under CLRVersion 2.0.50727.5420 The received results you can find below. It's too early/late for me to debug it deeply. @michalporeba can you look if can it be caused by your changes? ` <OUTPUT_PARTIALLY_OMITTED> Describing Mocking Cmdlets with dynamic parameters in a module <OUTPUT_PARTIALLY_OMITTED> Executing script C:\Users\Administrator\Pester\Pester.Tests.ps1 Describing Pester manifest and changelog <OUTPUT_PARTIALLY_OMITTED> Tests completed in 40.96s |
Thank you @it-praktyk. Those errors you see happen locally as, but they are only to do with the release process (CI) and they pass in TravicCI and TeamCity. The failing test can be found in the TeamCity if you log in as guest |
Thank you @nohwnd. I didn't realise you can filter like that on Assert-MockCalled. That's cool. |
@michalporeba I don't think either was needed to fix it, I was just trying it out so I don't have to spin up a powershell 2 machine. :) My reasoning is this:
I don't think skipping the deprecation test is way to go forward. There is something wrong with that test, so I will have to bite the bullet and install v2 somewhere :D |
@nohwnd I don't know what has changed but suddenly both tests show as passing. Can this be merged, please? |
@michalporeba thanks for the PR and sorry about the long silence I was taking a little break. I like the changes, but I don't like adding the explanation to the result 'is skipped without an explanation, consider adding -Because parameter to the Set-ItResult call', that will get old really fast, and sometimes you don't want to provide a reason (maybe because you are skipping the test programatically). The because parameter is optional so it should not be forcing the user to provide the reason. |
I actually came across this today, and I submitted a PR #1141 to fix this. |
…release notes and documentation. Removed the strong deprecation warnings. One warning per run is enough. Removed the without reason and suggestions to use -Because, sometimes you just dont want to provide extra message and that is okay.
Resolves #1022
at the moment all but 5 unit tests pass, all five in "Describing Pester manifest and changelog". What do I need to do to make them pass?