<?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>Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76986/unit-testing-and-mocking-in-nrf-connect-sdk</link><description>Hi, I am trying to add some unit testing in my NRF Connect SDK based project. I am using Unity + CMock suggested here . For files with no complicated dependencies it works fine but I have problems with mocking BLE related headers. 
 Assume I have file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2024 14:08:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76986/unit-testing-and-mocking-in-nrf-connect-sdk" /><item><title>RE: Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/493941?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2024 14:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c2ecd2e-4719-4a62-8f1a-bc13910ec7ac</guid><dc:creator>Jesse_Carpenter</dc:creator><description>&lt;p&gt;I&amp;#39;m facing the exact same problem with bt_conn. Did you ever find a solution to that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/460629?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 17:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b5e8c5-4990-4df9-8a7c-70b7aaf2eac5</guid><dc:creator>ChroukK</dc:creator><description>&lt;p&gt;I did the same running&amp;nbsp;&lt;span&gt;`build/zephyr/zephyr.exe --bt-dev=hci0` and that worked. Were you able to add the option to zephyr using unity ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/393542?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 18:57:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf5e24b-2920-432f-9f19-b5ca48bccc2e</guid><dc:creator>esisk</dc:creator><description>&lt;p&gt;Was there ever any resolution to this? I&amp;#39;m currently facing the same issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/322340?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 05:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54aae2c6-5626-4bbd-8671-3fdbea280671</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;I built for native_posix and run &amp;nbsp;`build/zephyr/zephyr.exe --bt-dev=hci0` and that worked. Can you check if it can be an option?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unit testing and mocking in NRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/319403?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 13:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a59f885-7a27-4566-9f48-55fa1497bc81</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Nordic is short on staff, so you will need to wait a little bit until the right expertise comes along. It will hopefully not take too long. Thanks for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>