RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
testFramework/ - Unit Testing FrameworkJUnitXMLWriter ReferenceTestManager Reference

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferencecommontestFramework

JUnitXMLWriter Reference

Module defined in `lua/common/testFramework/JUnitXMLWriter.lua`. Writes test results in JUnit XML format for CI/CD integration.

Module defined in lua/common/testFramework/JUnitXMLWriter.lua. Writes test results in JUnit XML format for CI/CD integration.


Exports

Functions

JUnitXMLWriter.write(results, outputFile)

Write test results to a JUnit-compatible XML file.

  • Parameters:
    • results - table - Test results table containing test suite data (pass/fail counts, individual test results with names, durations, failure messages)
    • outputFile - string - File path to write the XML output
  • Returns: table - The JUnit XML writer instance

Internal Notes

  • Uses SLAXML library for XML generation
  • Module var is JUnitXMLWriter (not standard M)
  • Output compatible with Jenkins, GitLab CI, and other JUnit XML consumers

See Also

  • testFramework/ - Unit Testing Framework - Directory overview
  • TestManager Reference - Related reference
  • Common Libraries Overview - Guide

testFramework/ - Unit Testing Framework

Simple unit test framework for BeamNG Lua code with JUnit XML output.

TestManager Reference

Module defined in `lua/common/testFramework/TestManager.lua`. Unit test manager for BeamNG - collects test functions, executes them, logs results, and outputs JUnit XML reports.

On this page

ExportsFunctionsJUnitXMLWriter.write(results, outputFile)Internal NotesSee Also