From 5a33ed0c810f4d7d59b1a07eece9d64232bbce71 Mon Sep 17 00:00:00 2001 From: rulasg Date: Mon, 12 Jan 2026 07:09:17 +0100 Subject: [PATCH] feat(run_BeforeAfter): add functions for before and after test execution --- Test/include/run_BeforeAfter.ps1 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Test/include/run_BeforeAfter.ps1 diff --git a/Test/include/run_BeforeAfter.ps1 b/Test/include/run_BeforeAfter.ps1 new file mode 100644 index 0000000..0807113 --- /dev/null +++ b/Test/include/run_BeforeAfter.ps1 @@ -0,0 +1,25 @@ +# Run Before and After any test +# +# Supported by TestingHelper 4.1.0 we can specify code that will run : +# - Before each test +# - After each test +# - Before all tests +# - After all tests + +function Run_BeforeAll{ + Write-Verbose "Run_BeforeAll" +} + +function Run_AfterAll{ + Write-Verbose "Run_AfterAll" +} + +function Run_BeforeEach{ + Write-Verbose "Run_BeforeEach" +} + +function Run_AfterEach{ + Write-Verbose "Run_AfterEach" +} + +Export-ModuleMember -Function Run_*