<?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>Issues Running Zephyr Unit Tests with twister on macOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125522/issues-running-zephyr-unit-tests-with-twister-on-macos</link><description>Hi everyone, I’m working on running Zephyr unit tests using ztest and twister on macOS, and I&amp;#39;m running into issues where the tests are either not detected or fail to build depending on configuration. 
 Environment: 
 
 
 macOS (Apple Silicon / Intel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Nov 2025 06:49:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125522/issues-running-zephyr-unit-tests-with-twister-on-macos" /><item><title>RE: Issues Running Zephyr Unit Tests with twister on macOS</title><link>https://devzone.nordicsemi.com/thread/554629?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2025 06:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb78f146-c393-48f6-9409-5d09bb56ec10</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Glad to hear that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues Running Zephyr Unit Tests with twister on macOS</title><link>https://devzone.nordicsemi.com/thread/554620?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2025 05:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c90b571-5169-41dc-a6af-1d1a3ada99d4</guid><dc:creator>Haris Iqbal</dc:creator><description>&lt;p&gt;Thanks for getting back Abhijith&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. I was able to run the unit tests using ZTEST.&amp;nbsp;You can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues Running Zephyr Unit Tests with twister on macOS</title><link>https://devzone.nordicsemi.com/thread/554287?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2025 16:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4fc10de-cad1-488a-bf06-254212df3847</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1763050585315v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Running tests with Twister on the native_posix board is not supported on macOS. Please see the section on&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/native/doc/arch_soc.html"&gt;&amp;nbsp;&lt;/a&gt;&lt;em&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/native/doc/arch_soc.html"&gt;POSIX architecture&lt;/a&gt;&amp;nbsp;&lt;/em&gt;. Also, refer to this GitHub issue about&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/53123"&gt; unit tests failing on macOS &lt;/a&gt;when using native_posix.&lt;/p&gt;
&lt;p&gt;I also believe this is more of a Zephyr issue rather than a Nordic one, so asking in the Zephyr Discord channel might give you more insight.&lt;/p&gt;
&lt;p&gt;Sorry for getting back to you a bit late, my colleague who was supposed to work on this fell sick and is away at the moment, which caused the delay.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt; Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>