From 4642be5492b13974fcc95df723dadfe97bc63c49 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Wed, 7 Jul 2021 04:11:25 +0200 Subject: [PATCH] Add local unit-test launcher --- PowerEditor/Test/FunctionList/localUnitestLauncher.ps1 | 8 ++++++++ .../FunctionList/udl-regexGlobalTest/unitTest.result.json | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 PowerEditor/Test/FunctionList/localUnitestLauncher.ps1 delete mode 100644 PowerEditor/Test/FunctionList/udl-regexGlobalTest/unitTest.result.json diff --git a/PowerEditor/Test/FunctionList/localUnitestLauncher.ps1 b/PowerEditor/Test/FunctionList/localUnitestLauncher.ps1 new file mode 100644 index 000000000..3318208a5 --- /dev/null +++ b/PowerEditor/Test/FunctionList/localUnitestLauncher.ps1 @@ -0,0 +1,8 @@ +$testRoot = ".\" +$PowerEditor = "$testRoot\..\..\" + +Copy-Item "$PowerEditor\installer\functionList" -Destination "$PowerEditor\bin" -Recurse +Copy-Item "$PowerEditor\installer\filesForTesting\regexGlobalTest.xml" -Destination "$PowerEditor\bin\functionList" +Copy-Item "$PowerEditor\installer\filesForTesting\overrideMap.xml" -Destination "$PowerEditor\bin\functionList" + +& ".\unitTestLauncher.ps1" \ No newline at end of file diff --git a/PowerEditor/Test/FunctionList/udl-regexGlobalTest/unitTest.result.json b/PowerEditor/Test/FunctionList/udl-regexGlobalTest/unitTest.result.json deleted file mode 100644 index e156dddd5..000000000 --- a/PowerEditor/Test/FunctionList/udl-regexGlobalTest/unitTest.result.json +++ /dev/null @@ -1 +0,0 @@ -{"leaves":["(/news/images/npp.businessCard.jpg)","(you probably want to hide tool bar if you have more content to show)","(I made the Notepad++ size on screen just fit my card)","(html, xml, php, c, c++, etc...)","(type \"Alt\" to show menu)","(via menu \"Settings\")","(for the bg/fg colour, font style and font size)","(on the top)","(https://www.albert-hwang.com/blog/2011/12/re-my-business-card)"],"root":"unitTest"} \ No newline at end of file