<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unity testing fail to run examples in nrf sdk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118493/unity-testing-fail-to-run-examples-in-nrf-sdk</link><description>Hello! 
 We have developed a product that we would like to add some testing for and I have looked at both ztest and unity testing. Currently I am struggling with running the examples for unity testing that is available under the nrf sdk in &amp;quot;ncs/v2.5.3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 07:33:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118493/unity-testing-fail-to-run-examples-in-nrf-sdk" /><item><title>RE: Unity testing fail to run examples in nrf sdk</title><link>https://devzone.nordicsemi.com/thread/527758?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 07:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ef1f289-697d-4616-be5a-348a5fe439a3</guid><dc:creator>Hdx</dc:creator><description>&lt;p&gt;Is there really no help I could get on this case? Should I file a private company ticket?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unity testing fail to run examples in nrf sdk</title><link>https://devzone.nordicsemi.com/thread/523259?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 12:57:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb845765-2595-4cc3-9593-247d9cc7c779</guid><dc:creator>Hdx</dc:creator><description>&lt;p&gt;Any update on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unity testing fail to run examples in nrf sdk</title><link>https://devzone.nordicsemi.com/thread/521501?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaaecee0-c051-45bb-9070-0aee2fa2620c</guid><dc:creator>Hdx</dc:creator><description>&lt;p&gt;Hmm ok, but I do not get it because I also tried the native_posix and got the same output. I tried to rename but still get the warnings:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/home/hd/ncs/v2.5.3/nrf/applications/asset_tracker_v2/tests/debug_module/prj.conf:7: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol UNITY

/home/hd/ncs/v2.5.3/nrf/applications/asset_tracker_v2/tests/debug_module/prj.conf:14: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol APP_EVENT_MANAGER&lt;/pre&gt;Does this example work and why is it complaining about unidentified symbol? I have not changed anything ran it straight out of the box.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unity testing fail to run examples in nrf sdk</title><link>https://devzone.nordicsemi.com/thread/521498?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa4353e-3b27-438c-982f-a97a6a5fca9e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;In NCS v2.5.3, there was only native_posix support.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.3/applications/asset_tracker_v2/tests/debug_module/testcase.yaml"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.3/applications/asset_tracker_v2/tests/debug_module/testcase.yaml&lt;/a&gt;&amp;nbsp;, but as per this commit, it was not working properly and we switched to native_sim in NCS 2.6.0.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/13d4934ad453dddc8cb9af724a38e8f5732e2dc5"&gt;https://github.com/nrfconnect/sdk-nrf/commit/13d4934ad453dddc8cb9af724a38e8f5732e2dc5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This means that you would have to e.g. change the name of the file native_posix.conf to native_sim.conf , for the file in the folder&amp;nbsp;asset_tracker_v2/boards/ , if you want to build asset_tracker_v2 for&amp;nbsp;&lt;span&gt;native_sim&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>