<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Testing on Adam Vu</title><link>https://vutg.me/tags/testing/</link><description>Recent content in Testing on Adam Vu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 28 May 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://vutg.me/tags/testing/index.xml" rel="self" type="application/rss+xml"/><item><title>Mock External APIs at Runtime with Mountebank</title><link>https://vutg.me/posts/mock-external-apis-at-runtime-with-mountebank/</link><pubDate>Tue, 28 May 2024 00:00:00 +0000</pubDate><guid>https://vutg.me/posts/mock-external-apis-at-runtime-with-mountebank/</guid><description>&lt;p&gt;Integration tests that hit real external APIs are slow, flaky, and impossible to run in CI
without credentials. But completely mocking at the unit level loses confidence — you&amp;rsquo;re not
testing how your code actually serializes requests, handles auth headers, or parses responses.&lt;/p&gt;
&lt;p&gt;The sweet spot is a &lt;strong&gt;real HTTP server that returns pre-programmed responses&lt;/strong&gt;. Your
application thinks it&amp;rsquo;s talking to Salesforce. It&amp;rsquo;s actually talking to a container on
localhost.&lt;/p&gt;</description></item></channel></rss>