Array
(
)

The AI & Mendix Testing Gap

ai-testing-gap

AI works great for code, but what about Mendix?

Why AI coding assistants struggle with Mendix (and how we can fix that)

If you build software in Mendix, you’ve probably seen colleagues working in Java, TypeScript, or Python use AI tools like GitHub Copilot, Cursor, or Claude. In those text-based stacks, you can point an AI assistant at a file, ask it to write a unit test, and get a sensible test script in seconds.

Try doing that in a Mendix project, though, and you quickly hit a wall.

The reason is pretty straightforward: “Mendix applications aren’t folders full of text files.”

Your microflows, domain entities, associations, security rules, and pages live inside a single `.mpr` project file. Because standard AI tools only know how to read text files, they can’t see what’s going on inside your Mendix model. If you ask an off-the-shelf AI to “test my calculate discount microflow,” it usually makes up random Java code or guesses what your parameters might be.

When documentation is outdated, look at the model

How visual models give AI the context it actually needs

When we build tests, having clear user stories, acceptance criteria, or OpenAPI specs is always helpful. You can feed those directly into your AI prompt so the assistant understands what the business wanted to build.

But let’s be realistic: in many enterprise projects (especially apps built in Mendix 9 or 10 that have been running in production for years), documentation is often incomplete or outdated. The original stories in Jira rarely match what the app does today.

This is where Mendix developers actually have an advantage over traditional coders. In Mendix, the visual model “is” the implementation:

  • The domain model explicitly defines entities, attributes, and associations.
  • Microflows clearly lay out decisions, loops, rules, and sub-microflow calls.
  • Security settings define exactly who can access what.

If we give an AI assistant a safe way to read that model, it doesn’t need to guess your application logic. It can see the exact paths, parameters, and return types directly from the source.

From clicking through forms to AI-assisted test creation

Why setting up tests in MTA used to take too long

For teams already familiar with Menditect Test Automation (MTA), the execution engine has always been solid. It runs microflows directly, supports frontend UI tests, and automatically rolls back database changes so your test data doesn’t clutter your environments.

The pain point was never the test runner; “it was the time it took to build tests by hand.”

In MTA 3.1 and earlier, setting up a test meant doing everything manually in the web interface: creating a suite, adding test steps, selecting entity types, and typing in parameter bindings and assertion rules one by one.

If you had a couple of microflows to test, that was manageable. But if you were maintaining a large Mendix 9 or 10 app with dozens of business-critical flows, manually scripting tests felt like a full-time job. Most teams simply didn’t have the hours to spare, so test debt piled up, making refactoring or upgrading to Mendix 10 feel risky.

With MTA 3.2, that manual hurdle goes away:

  • The AI handles the setup: Your AI assistant reads the microflow logic and calls MTA tools to configure the test steps, parameters, and assertions for you.
  • Full test levels covered: You can set up unit tests for calculation microflows, component tests for module logic, backend process tests across multiple steps, and UI tests for web pages.
  • Built-in data seeding and cleanups: Tests can seed necessary test objects beforehand and use MTA’s rollbacks to leave the database clean after execution.

The setup: how it works in practice

Connecting your AI assistant to MTA and your Mendix project

We didn’t build another separate AI chat tool. Instead, we use the open Model Context Protocol (MCP) so you can connect your existing AI assistant (Cursor, Claude Code, Gemini Antigravity, or Copilot) directly to your project:

  • Model inspection (`mxcli` or Studio Pro MCP): A safe, read-only way for your AI to read your application structure. You can use the lightweight command-line tool `mxcli`, or if you are running Mendix 11.12 or higher, you can connect directly to the native Studio Pro MCP server as an alternative.
  • Your AI assistant: Reads your prompt (along with any user stories you provide) and inspects the model to design a sensible test plan.
  • Menditect agentic skills: Menditect does not only deliver MCP tools, but also ready-to-use agentic test skills via our public GitHub repository (Menditect/agentic-test-skills) and the Mendix Marketplace. These skills give your AI assistant testing best practices, naming conventions, and workflow rules out of the box.
  • MTA MCP server (v3.2): Creates the actual test suites, test cases, and variations inside MTA.

To make setting this up easy, Menditect publishes an open source template for workspace configuration with MTA MCP, MTA plugin MCP, and `mxcli` or Studio Pro MCP in the repository Menditect/agentic-test-tools.

architecture-schema

Once the test is generated, it lives in MTA. You can run it locally or trigger it in your CI/CD pipeline whenever someone commits to Team Server, with no ongoing AI token costs.

What this means for teams

  • For developers: You can generate a test suite for a complex microflow in a few minutes right from your editor, instead of spending an hour clicking through web forms.
  • For testers: You get structured, repeatable tests across unit, process, and UI levels without having to write code or manage fragile test data by hand.
  • For product owners and leads: You can finally get decent test coverage on older Mendix 9 or 10 apps, making future upgrades to Mendix 10 or 11 much safer.

Mendix builds the future; Menditect ensures it works.

MTA 3.2 is coming out in a few weeks. If you want to see how it works on real Mendix microflows, check out these sessions:

See MTA in action:

Dick van Gorkum

Get in touch with Menditect

Fill out this form and we answer your question or help you out.

Menu