<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Setup to run unitTestLauncher.ps1]]></title><description><![CDATA[<p dir="auto">I was asked to add a unitTest for added language to functionList.xml.<br />
(Add VHDL to functionList.xml #8509)</p>
<p dir="auto">But I can´t run unitTestLauncher.ps1 successfully. How do I do? (without building npp from source)</p>
<p dir="auto">What I did:<br />
I downloaded/cloned the current npp repo. I run unitTestLauncher.ps1 but this fails as there is only ‘Notepad++.exe.lastcodeanalysissucceeded’ instead of a real exe-file. OK.<br />
Then I changed the path in the ps-script to my current installed npp version but then it tells me:<br />
Unexpected token “-export”</p>
<p dir="auto">How do I do the right way to run it?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19679/setup-to-run-unittestlauncher-ps1</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 05:20:00 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19679.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jul 2020 14:13:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setup to run unitTestLauncher.ps1 on Tue, 14 Jul 2020 10:28:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks for your help and motivating me to go some steps further!</p>
<p dir="auto">I got it:</p>
<p dir="auto">I changed my setup to:</p>
<p dir="auto">C:\notepad-plus-plus-master    &lt;- where I copied the current Notepad++ clone<br />
C:\npp_7_8_8_bin_x64                &lt;- where the latest realese was unzipped</p>
<p dir="auto">This makes it possible to put the path in unitTestLauncher.ps1 without quotation marks (your proposal did not work as this was what caused the “unexpected token”-error), as there is no space in the path (due to Windows “Program Files” -&gt; bad Microsoft!).</p>
<p dir="auto">Now my first line in unitTestLauncher.ps1 is:</p>
<pre><code>C:\npp_7_8_8_bin_x64\notepad++.exe -export=functionList -lasm .\asm\unitTest | Out-Null
</code></pre>
<p dir="auto">BTW: I get onlly 2x “OK” as the bash test fails. But that´s another story.</p>
<p dir="auto">Now I can go on with the VHDL unittest! Thanks for your help!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55848</guid><dc:creator><![CDATA[el-coder-sb]]></dc:creator><pubDate>Tue, 14 Jul 2020 10:28:01 GMT</pubDate></item><item><title><![CDATA[Reply to Setup to run unitTestLauncher.ps1 on Mon, 13 Jul 2020 12:06:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/el-coder-sb" aria-label="Profile: el-coder-sb">@<bdi>el-coder-sb</bdi></a> said in <a href="/post/55818">Setup to run unitTestLauncher.ps1</a>:</p>
<blockquote>
<p dir="auto">However now I get the error that the file “&lt;path&gt;\asm\unitTest.result.json” was not found.</p>
</blockquote>
<p dir="auto">Hmm, certainly works for me. Can you describe in more detail what you do and get? Show us the real results from cmd?</p>
<p dir="auto">Could it be that it must be quoted like</p>
<pre><code class="language-z">"C:\Program Files\Notepad++\notepad++.exe" -export=functionList -lasm .\asm\unitTest | Out-Null
</code></pre>
<p dir="auto">??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55827</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 13 Jul 2020 12:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Setup to run unitTestLauncher.ps1 on Mon, 13 Jul 2020 09:58:29 GMT]]></title><description><![CDATA[<p dir="auto">I have 7.8.8 installed.</p>
<p dir="auto">I found that the “-export”-error was due to bad quotation marks.</p>
<p dir="auto">However now I get the error that the file “&lt;path&gt;\asm\unitTest.result.json” was not found.<br />
It is not generated (I cannot find it anywhere). Even when running with admin privileges.</p>
<p dir="auto">My first line in unitTestLauncher.ps1 is:</p>
<pre><code>"C:\Program Files\Notepad++\notepad++.exe -export=functionList -lasm .\asm\unitTest | Out-Null"
</code></pre>
<p dir="auto">Even when changing ".\asm\unitTest " to a full path there is no generated file.</p>
<p dir="auto">Where am I wrong?<br />
As I cannot find ‘-export’ at <a href="https://npp-user-manual.org/docs/command-prompt/" rel="nofollow ugc">https://npp-user-manual.org/docs/command-prompt/</a> may be it is not supported by the standard installation?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55818</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55818</guid><dc:creator><![CDATA[el-coder-sb]]></dc:creator><pubDate>Mon, 13 Jul 2020 09:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Setup to run unitTestLauncher.ps1 on Fri, 10 Jul 2020 13:05:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/el-coder-sb" aria-label="Profile: el-coder-sb">@<bdi>el-coder-sb</bdi></a></p>
<p dir="auto">just did a quick test.</p>
<p dir="auto">changed the path of my npp install in unitTestLauncher.ps1.<br />
Opened a cmd and opened powershell<br />
Run</p>
<pre><code>PS D:\Repositories\npp\PowerEditor\Test\FunctionList&gt; .\unitTestLauncher.ps1
</code></pre>
<p dir="auto">resulted in multiple lines saying OK</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55759</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55759</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 10 Jul 2020 13:05:37 GMT</pubDate></item><item><title><![CDATA[Reply to Setup to run unitTestLauncher.ps1 on Fri, 10 Jul 2020 12:58:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/el-coder-sb" aria-label="Profile: el-coder-sb">@<bdi>el-coder-sb</bdi></a></p>
<blockquote>
<p dir="auto">Unexpected token “-export”</p>
</blockquote>
<p dir="auto">then I assume you are using an older version of npp, could this be?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55758</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55758</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 10 Jul 2020 12:58:35 GMT</pubDate></item></channel></rss>