Loading

MUnit Tests Not Found in Anypoint Code Builder

Data pubblicazione: Apr 15, 2026
Descrizione

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.

Risoluzione
  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.
Numero articolo Knowledge

005318629

 
Caricamento
Salesforce Help | Article