Module: utils/exportFormats

Enterprise test export format builders.

Converts test objects into industry-standard formats for import into external test management and CI tools.

Supported formats

Format Use case
Zephyr CSV Zephyr Scale / Zephyr Squad test management
TestRail CSV TestRail bulk import

Exports

  • buildZephyrCsv — Generate Zephyr Scale CSV from test array.
  • buildTestRailCsv — Generate TestRail CSV from test array.
Source:

Methods

(static) buildTestRailCsv(tests) → {string}

buildTestRailCsv(tests) → string (CSV)

Parameters:
Name Type Description
tests Array.<object>
Source:
Returns:

CSV content ready for TestRail import

Type
string

(static) buildZephyrCsv(tests) → {string}

buildZephyrCsv(tests) → string (CSV)

Produces a CSV compatible with Zephyr Scale's "Import Test Cases from CSV" feature. Columns match the standard Zephyr Scale import mapping.

Parameters:
Name Type Description
tests Array.<object>

— array of test objects

Source:
Returns:

CSV content ready for Zephyr Scale import

Type
string