<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Henry Huang</title>
    <description>The latest articles on DEV Community by Henry Huang (@hslcalgary).</description>
    <link>https://dev.to/hslcalgary</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4217612%2F6cd50cc3-3183-407d-b165-b83fa82cd781.png</url>
      <title>DEV Community: Henry Huang</title>
      <link>https://dev.to/hslcalgary</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hslcalgary"/>
    <language>en</language>
    <item>
      <title>Import a Postman collection, run it headlessly with HTTP Forge, emit JUnit, and wire it into GitHub Actions — no Postman or Newman required</title>
      <dc:creator>Henry Huang</dc:creator>
      <pubDate>Fri, 30 Oct 2026 22:08:30 +0000</pubDate>
      <link>https://dev.to/hslcalgary/import-a-postman-collection-run-it-headlessly-with-http-forge-emit-junit-and-wire-it-into-github-53k6</link>
      <guid>https://dev.to/hslcalgary/import-a-postman-collection-run-it-headlessly-with-http-forge-emit-junit-and-wire-it-into-github-53k6</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m" class="crayons-story__hidden-navigation-link"&gt;How to run Postman collections in CI without Postman&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/hslcalgary" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4217612%2F6cd50cc3-3183-407d-b165-b83fa82cd781.png" alt="hslcalgary profile" class="crayons-avatar__image" width="96" height="96"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/hslcalgary" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Henry Huang
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Henry Huang
                
                
              
              &lt;div id="story-author-preview-content-4948812" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/hslcalgary" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4217612%2F6cd50cc3-3183-407d-b165-b83fa82cd781.png" class="crayons-avatar__image" alt="" width="96" height="96"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Henry Huang&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Oct 30&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m" id="article-link-4948812"&gt;
          How to run Postman collections in CI without Postman
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/automation"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;automation&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/postman"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;postman&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/githubactions"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;githubactions&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/api"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;api&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;1&lt;span class="hidden s:inline"&gt;&amp;nbsp;reaction&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            6 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>github</category>
      <category>automation</category>
      <category>testing</category>
      <category>ci</category>
    </item>
    <item>
      <title>How to run Postman collections in CI without Postman</title>
      <dc:creator>Henry Huang</dc:creator>
      <pubDate>Fri, 30 Oct 2026 17:39:22 +0000</pubDate>
      <link>https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m</link>
      <guid>https://dev.to/hslcalgary/how-to-run-postman-collections-in-ci-without-postman-125m</guid>
      <description>&lt;p&gt;You have a Postman collection. It works on your machine. Now you want it to run on every pull request without installing Postman, paying for a cloud runner, or asking everyone to learn Newman.&lt;/p&gt;

&lt;p&gt;This is a practical guide to doing exactly that with the HTTP Forge CLI:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Import the Postman collection and environment.&lt;/li&gt;
&lt;li&gt;Run the collection headlessly.&lt;/li&gt;
&lt;li&gt;Emit a JUnit report.&lt;/li&gt;
&lt;li&gt;Wire it into GitHub Actions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No GUI required after the import.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just use Newman?
&lt;/h2&gt;

&lt;p&gt;Newman is the obvious answer, and it works. But it has a few sharp edges in CI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's a separate runtime from the rest of your tooling.&lt;/li&gt;
&lt;li&gt;Environment/collection files are passed as CLI paths, which makes multi-environment setups awkward.&lt;/li&gt;
&lt;li&gt;Reports are decent but JUnit output needs extra configuration.&lt;/li&gt;
&lt;li&gt;There's no built-in way to re-derive the collection when the API changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;HTTP Forge takes a different approach: it imports the Postman collection into a workspace-native format (collections, environments, and suites on disk), then runs that workspace headlessly. The import is a one-time migration step; after that you're running HTTP Forge artifacts, not Postman files.&lt;/p&gt;

&lt;p&gt;If you want to keep Postman as the authoring tool, that's fine too — you can re-import on each CI run. Both patterns are shown below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 — Import the collection
&lt;/h2&gt;

&lt;p&gt;Export your collection from Postman as &lt;strong&gt;Collection v2.x&lt;/strong&gt; JSON, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @http-forge/cli

http-forge import collection &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--postman&lt;/span&gt; ./MyApi.postman_collection.json &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--name&lt;/span&gt; &lt;span class="s2"&gt;"My API"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That creates a collection in the current workspace. To target a specific workspace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge import collection &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--postman&lt;/span&gt; ./MyApi.postman_collection.json &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--name&lt;/span&gt; &lt;span class="s2"&gt;"My API"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--workspace&lt;/span&gt; ./.http-forge/assets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify it landed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge list collections &lt;span class="nt"&gt;--workspace&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
http-forge list requests &lt;span class="nt"&gt;--collection&lt;/span&gt; &lt;span class="s2"&gt;"My API"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Import the environment too
&lt;/h3&gt;

&lt;p&gt;Postman collections usually reference variables like &lt;code&gt;{{baseUrl}}&lt;/code&gt; and &lt;code&gt;{{token}}&lt;/code&gt;. Import the environment export:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge import &lt;span class="nb"&gt;env&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--postman&lt;/span&gt; ./MyEnv.postman_environment.json &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--env&lt;/span&gt; staging &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--overwrite&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then confirm the values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge &lt;span class="nb"&gt;env &lt;/span&gt;get staging &lt;span class="nt"&gt;--workspace&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you'd rather not commit secrets, keep the environment file out of git and import it in CI from a secret (more on that below).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 — Run it headlessly
&lt;/h2&gt;

&lt;p&gt;A single collection run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge run collection &lt;span class="s2"&gt;"My API"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--workspace&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--environment&lt;/span&gt; staging &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--include&lt;/span&gt; failedOnly
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Useful flags for CI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--environment &amp;lt;name&amp;gt;&lt;/code&gt; (or &lt;code&gt;--env&lt;/code&gt;) — activate an environment.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--var KEY=VALUE&lt;/code&gt; — override a variable; repeatable, highest priority.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--iterations &amp;lt;n&amp;gt;&lt;/code&gt; and &lt;code&gt;--concurrency &amp;lt;n&amp;gt;&lt;/code&gt; — load/parameterized runs.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--stop-on-error&lt;/code&gt; — fail fast.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--exit-code&lt;/code&gt; — exit &lt;code&gt;1&lt;/code&gt; when any assertion fails (this is the CI gate).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--reporter junit:results/junit.xml&lt;/code&gt; — write machine-readable results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A realistic CI command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge run collection &lt;span class="s2"&gt;"My API"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--environment&lt;/span&gt; staging &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--var&lt;/span&gt; &lt;span class="nv"&gt;BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$STAGING_BASE_URL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--reporter&lt;/span&gt; junit:results/junit.xml &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--exit-code&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exit code is what makes CI fail the build. The JUnit file is what makes the failure readable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prefer suites?
&lt;/h3&gt;

&lt;p&gt;If you've arranged requests into a suite (or generated one), run it the same way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge run suite &lt;span class="s2"&gt;"smoke-tests"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--environment&lt;/span&gt; staging &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--reporter&lt;/span&gt; junit:results/junit.xml &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--exit-code&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3 — Emit a JUnit report
&lt;/h2&gt;

&lt;p&gt;JUnit XML is the lingua franca of CI test reporting. GitHub Actions, GitLab, Jenkins, and Azure DevOps all understand it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge run collection &lt;span class="s2"&gt;"My API"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--environment&lt;/span&gt; staging &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--reporter&lt;/span&gt; junit:results/junit.xml &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--exit-code&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also generate an HTML report in the same run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;http-forge run collection &lt;span class="s2"&gt;"My API"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--reporter&lt;/span&gt; junit:results/junit.xml &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--reporter&lt;/span&gt; html:reports/run.html &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--exit-code&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JUnit XML is written even when every request fails, so CI tools can display the failures.&lt;/li&gt;
&lt;li&gt;HTML reports need at least one successful request to have content.&lt;/li&gt;
&lt;li&gt;Reporters are composable — pass &lt;code&gt;--reporter&lt;/code&gt; once per format.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4 — Wire it into GitHub Actions
&lt;/h2&gt;

&lt;p&gt;Here's a complete workflow. It installs Node, installs the CLI, imports the collection (if you keep Postman as the source of truth), runs it, uploads the report, and publishes the JUnit results.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;API tests&lt;/span&gt;

&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;main&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;api-tests&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;

    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install HTTP Forge CLI&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm install -g @http-forge/cli&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Import Postman collection&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;http-forge import collection \&lt;/span&gt;
            &lt;span class="s"&gt;--postman ./postman/MyApi.postman_collection.json \&lt;/span&gt;
            &lt;span class="s"&gt;--name "My API"&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Import Postman environment&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;http-forge import env \&lt;/span&gt;
            &lt;span class="s"&gt;--postman ./postman/MyEnv.postman_environment.json \&lt;/span&gt;
            &lt;span class="s"&gt;--env staging \&lt;/span&gt;
            &lt;span class="s"&gt;--overwrite&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run API tests&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;BASE_URL&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.STAGING_BASE_URL }}&lt;/span&gt;
          &lt;span class="na"&gt;API_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.API_TOKEN }}&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;http-forge run collection "My API" \&lt;/span&gt;
            &lt;span class="s"&gt;--environment staging \&lt;/span&gt;
            &lt;span class="s"&gt;--var BASE_URL="$BASE_URL" \&lt;/span&gt;
            &lt;span class="s"&gt;--var TOKEN="$API_TOKEN" \&lt;/span&gt;
            &lt;span class="s"&gt;--reporter junit:results/junit.xml \&lt;/span&gt;
            &lt;span class="s"&gt;--exit-code&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Upload JUnit report&lt;/span&gt;
        &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;always()&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/upload-artifact@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;api-test-results&lt;/span&gt;
          &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;results/junit.xml&lt;/span&gt;

      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Publish test report&lt;/span&gt;
        &lt;span class="na"&gt;if&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;always()&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dorny/test-reporter@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;API tests&lt;/span&gt;
          &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;results/junit.xml&lt;/span&gt;
          &lt;span class="na"&gt;reporter&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;java-junit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  If you commit the imported collection
&lt;/h3&gt;

&lt;p&gt;If you'd rather not import on every run, commit the HTTP Forge workspace (collections + environments) and skip the import steps:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run API tests&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;BASE_URL&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.STAGING_BASE_URL }}&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;http-forge run collection "My API" \&lt;/span&gt;
            &lt;span class="s"&gt;--environment staging \&lt;/span&gt;
            &lt;span class="s"&gt;--var BASE_URL="$BASE_URL" \&lt;/span&gt;
            &lt;span class="s"&gt;--reporter junit:results/junit.xml \&lt;/span&gt;
            &lt;span class="s"&gt;--exit-code&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is faster and avoids depending on the Postman export staying in sync. The tradeoff is that the Postman collection and the committed HTTP Forge collection can diverge — pick one as the source of truth.&lt;/p&gt;

&lt;h3&gt;
  
  
  The flow at a glance
&lt;/h3&gt;



&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TB
    postman["Postman export&amp;lt;br/&amp;gt;(collection + env)"] --&amp;gt; import["http-forge import"]
    import --&amp;gt; workspace["Workspace artifacts&amp;lt;br/&amp;gt;(collections, envs, suites)"]
    workspace --&amp;gt; run["http-forge run&amp;lt;br/&amp;gt;--reporter junit --exit-code"]
    run --&amp;gt; junit["results/junit.xml"]
    junit --&amp;gt; artifact["Upload artifact"]
    junit --&amp;gt; report["PR test report"]
    run --&amp;gt; gate{"Exit code 0?"}
    gate --&amp;gt;|"yes"| pass["Build passes"]
    gate --&amp;gt;|"no"| fail["Build fails"]&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Handling auth and secrets
&lt;/h2&gt;

&lt;p&gt;Never commit tokens. Options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;--var&lt;/code&gt; with a CI secret&lt;/strong&gt; — &lt;code&gt;--var TOKEN="${{ secrets.API_TOKEN }}"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment file from a secret&lt;/strong&gt; — write the JSON to disk in a step, then &lt;code&gt;import env&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP Forge environment values&lt;/strong&gt; — if you commit the environment, leave secrets out and inject with &lt;code&gt;--var&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Precedence: &lt;code&gt;--var&lt;/code&gt; overrides environment values, which override globals. That's usually what you want for CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common pitfalls
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The collection references &lt;code&gt;{{baseUrl}}&lt;/code&gt; but the environment has &lt;code&gt;{{BASE_URL}}&lt;/code&gt;.&lt;/strong&gt; Variable names are case-sensitive. Check with &lt;code&gt;http-forge env get staging&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scripts depend on Postman-specific APIs.&lt;/strong&gt; HTTP Forge supports the common &lt;code&gt;pm.*&lt;/code&gt; surface (tests, &lt;code&gt;pm.response.json()&lt;/code&gt;, environment/collection variables, &lt;code&gt;pm.expect&lt;/code&gt;). If your collection uses exotic Postman features, review the imported scripts before relying on them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The collection imports but requests fail with 401.&lt;/strong&gt; The environment wasn't activated. Pass &lt;code&gt;--environment&lt;/code&gt; explicitly; CI has no "currently selected environment."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JUnit file is empty.&lt;/strong&gt; Make sure you passed &lt;code&gt;--reporter junit:&amp;lt;path&amp;gt;&lt;/code&gt;, not &lt;code&gt;--include report&lt;/code&gt;. They're different mechanisms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The run passes locally but fails in CI.&lt;/strong&gt; Usually a missing variable or a different base URL. Run with &lt;code&gt;--include failedOnly&lt;/code&gt; to see exactly which requests failed without dumping every response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is this worth migrating?
&lt;/h2&gt;

&lt;p&gt;If you only have a handful of requests, Newman is fine. If you have a collection you actually rely on — one that runs on PRs and gates merges — the import gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A workspace-native artifact you can version, diff, and regenerate.&lt;/li&gt;
&lt;li&gt;A CLI that runs collections, folders, requests, and suites with the same engine.&lt;/li&gt;
&lt;li&gt;JUnit/HTML reporting without extra tooling.&lt;/li&gt;
&lt;li&gt;A path to source-based discovery and drift detection when you're ready to stop maintaining the collection by hand.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last part is the reason I built it. Importing Postman is the on-ramp; keeping tests from rotting is the destination.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CLI reference:&lt;/strong&gt; &lt;a href="https://github.com/hsl1230/http-forge.cli/blob/main/docs/cli-reference.md" rel="noopener noreferrer"&gt;https://github.com/hsl1230/http-forge.cli/blob/main/docs/cli-reference.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI guide:&lt;/strong&gt; &lt;a href="https://github.com/hsl1230/http-forge.cli/blob/main/docs/ci-guide.md" rel="noopener noreferrer"&gt;https://github.com/hsl1230/http-forge.cli/blob/main/docs/ci-guide.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP Forge for VS Code:&lt;/strong&gt; &lt;a href="https://marketplace.visualstudio.com/items?itemName=henry-huang.http-forge" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=henry-huang.http-forge&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-source core:&lt;/strong&gt; &lt;a href="https://github.com/hsl1230/http-forge.core" rel="noopener noreferrer"&gt;https://github.com/hsl1230/http-forge.core&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want a ready-made workspace to try the run/report flow before importing your own collection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @http-forge/cli
http-forge launch &lt;span class="nt"&gt;--examples&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That clones a sample workspace with pre-built requests and suites and opens it in VS Code.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>postman</category>
      <category>githubactions</category>
      <category>api</category>
    </item>
  </channel>
</rss>
