vexx32 / PSKoans

A simple, fun, and interactive way to learn the PowerShell language through Pester unit testing.
GNU General Public License v3.0
1.72k stars 176 forks source link

Enumeration time is quite long the more you progress #457

Open DEberhardt opened 3 years ago

DEberhardt commented 3 years ago

First of all, thank you for making and supporting this module. I am loving it and continue to learnings of Pester & PowerShell 😄

Describe "Functionality"

When running Show-Karma, it enumerates through all Koans to find where it throws, then displays this as the next step.

Context "Private or Public? What are the use cases? Parameters? Options?"

When doing them over a long period of time, some results (like Number of Modules, Functions, etc.) can change, prompting you to have to redo some Koans (having to update some values). This isn't bad, but once solved, should it test again for all?

Context "Additional Information"

The further you progress, the longer the command will run. I am on 307 now and execution time is now at 3-5mins.

 David  C:\                                                            13:37:51
❯
 David  C:\                                                            13:44:33
❯ Show-Karma
[... removed VariableNotRemovableRare and Modules_NoModulesRemoved error messages ...]
    Welcome, seeker of enlightenment.
    Let us observe your karma...

Describing "Redirection Operators" has damaged your karma.

    You have not yet reached enlightenment.
[...]
 David  C:\                                                            13:47:55
❯

Don't know if this is intentional, but I loved the interaction on earlier Koans that was a kind of "instant-karma" (maybe it is just the times that requires things to go faster all the time...^^)

Can they be marked as solved to not having to re-test them every time?

vexx32 commented 3 years ago

That's an interesting question... I suppose there could be a way to do that, aye. Don't know how exactly it would look, but it's probably doable.

indented-automation commented 3 years ago

Could hash and cache... I don't mind putting a prototype together.

On Sun, 12 Sep 2021, 19:21 vexx32, @.***> wrote:

That's an interesting question... I suppose there could be a way to do that, aye. Don't know how exactly it would look, but it's probably doable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vexx32/PSKoans/issues/457#issuecomment-917685322, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB3UDQHXQRODEGVJZ6J2A3UBTVTNANCNFSM5D4CIS6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.