Loading

MUnit Tests Not Found in Anypoint Code Builder

Julkaisupäivä: Apr 15, 2026
Kuvaus

Running MUnit tests in Anypoint Code Builder (ACB) results in the error "No tests found in the selected file or folder" even though the tests run fine from Anypoint Studio on the same project.

Ratkaisu
  1. Verify folder structuring:
    1. Ensure your MUnit XML files are located in: src/test/munit/
    2. Ensure any supporting files (like test data or inputs) are in: src/test/resources/
  2. Verify the pom.xml file:
    1. Ensure the pom.xml file contains a <name> tag for the project.
  3. Refresh the window in Anypoint Code Builder by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac) and selecting 'Developer: Reload Window.' 
  4. Verify that the MUnit tests are now displayed in the UI and that the 'No tests found in the selected file or folder' error no longer appears.
Knowledge-artikkelin numero

005318629

 
Ladataan
Salesforce Help | Article