Your tests are written in a language nobody at the company understands
Updated:
If the test author leaves and the team does not know the programming language, even routine maintenance can stall. Copying an existing test helps with simple value changes, but a more complex failure requires someone to understand the scenario, libraries and execution model.
Skipping unmaintained tests can gradually reduce regression coverage. Before disabling the suite, identify which risks will remain unverified and who will decide on maintenance or migration.
Common problem: nobody can maintain the suite
A test suite is not a finished product that simply runs by itself. It is living code that changes with the application. A relevant new feature may require a new test, and a screen change may affect the scenarios concerned.
Someone needs to be able to open and modify the suite routinely. If only one person can do it, the suite depends on that person. If nobody can, suite maintenance has no owner.
A typical case is a suite written in a different language because that was the approach in the past or because an external supplier used its own stack. The company’s developers now work in Python or TypeScript. The company formally “has” the suite, but in practice nobody touches it.
How to migrate tests to a suitable language
We migrate the suite to a language your team understands.
We do not translate it line by line. The value lies in the scenarios and assertions, which record the knowledge you have collected over the years about how the product should behave. That is what we migrate. The code that records this knowledge today is often also what makes the suite unmaintainable, so we do not copy it into the new one.
The target language is not a matter of fashion:
- Python may make sense for a team that already uses it or needs more approachable syntax. Both Playwright and Selenium have official Python bindings, but the specific libraries and integrations need to be compared with the project’s requirements.
- TypeScript is our choice when the tests should live alongside the frontend and be extended by the same team that writes the application. The tests can share the production code’s repository and language. The team still needs to agree on creating a new feature and its test together.
- Robot Framework may make sense when well-named keywords make scenarios more readable outside the development team as well.
We choose the target language according to the team’s experience, the product’s technology, and the available integrations, not our preference. What matters is which language the team can use to maintain the suite over the long term.
We design the new suite for easier maintenance, with an appropriate layer of page or component objects, stable identifiers, and separate test data. The migration proceeds gradually by priority, and a coverage map identifies which regression scenarios the old suite still checks and which the new suite now covers.
First check whether a rewrite is needed
Changing language can remove one obstacle, but does not create maintenance time or product knowledge. If the existing suite is readable, uses supported libraries and only lacks another maintainer, handover, training and documentation may be more proportionate. Unsupported dependencies or missing integrations may make gradual migration a better choice.
Ask the future maintainer to find the expected outcome in a small example, run the test and explain a failure. This reveals whether syntax, suite structure or environment setup is the obstacle. Each needs a different change. The same confusing scenario in Python can still be difficult to maintain.
Before deciding, record the new suite’s owner, time for repairs and handover approach. Compare the cost of temporary parallel operation too. Until the new implementation takes over specific checks, the old test or an agreed substitute must continue to cover that risk.
The runner and waiting behaviour move too
Playwright distinguishes the testing ecosystems for its languages. Node.js has Playwright Test, while Python uses the recommended pytest plugin. Shared browser-automation capabilities do not mean identical suite configuration. Verify execution, isolation, reporting and integrations in the target toolset.
Create a short mapping from original settings to the new test, fixture, timeout, retry and diagnostic artifact. Verify browser selection and parallel CI execution. Do not replace an existing report solely with a count of green tests if the failure step and cause disappear.
Playwright provides auto-retrying assertions in Python. A normal assert on an already fetched value does not itself wait for a future change. Preserve intended waiting behaviour during migration, rather than merely similar assertion syntax. A fixed pause may not replace the original readiness check.
Review data setup and cleanup separately. Pytest does not run a fixture’s teardown section if it fails before yield. Partial setup can therefore leave an account or record behind. The design needs to handle that state and avoid depending solely on normal test completion when a run is interrupted.
A short pilot: the same outcome in the new suite
Consider a model purchase of item MIG-A at 25 EUR with quantity 2. The expected product total is 50 EUR. The pilot checks the normal journey and rejection of an invalid address. These test rules should be adapted to the actual product.
| Case | What must remain covered during migration |
|---|---|
| Valid order | Correct item, quantity 2, total 50 EUR and the saved order’s identifier. |
| Invalid address | Agreed error, preservation of draft values and no order created. |
| Deliberately wrong expectation | The test fails and the report identifies the affected check. The error must not simply be logged to the console while the test succeeds. |
Compare old and new suites against the same application version and equivalent initial data. Each run still needs its own mutable records so the suites do not consume one another’s coupon or overwrite an order. Matching counts of successful tests do not establish matching assertions.
If the old suite cannot run, its last green report is insufficient as a current expectation. Confirm behaviour from requirements, available records and the product owner. Record an unknown rule as an open question rather than copying today’s accidental result.
Verify handover through a specific change
Have a second person use the documentation to install the agreed dependencies, run the pilot and modify one test value. Then have them locate the cause of a prepared failure. This small walkthrough checks whether the documentation covers routine work, rather than only the author’s first run.
Hand over commands for local and CI execution, data preparation, report locations, limitations and the suite’s contact owner. Secrets belong in an approved store, rather than repository examples. Update the coverage map for each migrated scenario, and disable its old test only after the replacement is approved.
What a readable suite gives you
When the team understands the suite and a test fails, a developer can more easily determine what it verifies. For a relevant new feature, the team can add a test without first overcoming the barrier of an unfamiliar language.
This reduces dependence on one person, whether internal or external. The suite is in your repository, in a language the team knows, and has the agreed documentation. The team’s ability to extend it independently then depends on the handover and the capacity available.
Next step
Tell us what language the tests use today and what language your team works in. Contact us and we will propose a target language and migration order, with the reasoning behind our recommendation.