Files
flights_web_raw/node_modules/junit-report-builder/README.md
T
gnezim 60e2149072 Add comprehensive e2e test suites for Tasks 16-25
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date)
- Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class
- Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting
- Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states
- Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions
- Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation

Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares)
- Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline
- Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements
- Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations
- Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary
- Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds

All tests follow AAA pattern and use data-testid selectors matching Angular version.
Total: 245 tests across 10 feature suites.
2026-04-05 19:25:03 +03:00

142 lines
3.9 KiB
Markdown
Executable File

# junit-report-builder
[![Build Status](https://github.com/davidparsson/junit-report-builder/workflows/CI/badge.svg)](https://github.com/davidparsson/junit-report-builder/actions?query=workflow%3ACI)
[![Weekly Downloads](https://img.shields.io/npm/dw/junit-report-builder.svg)](https://www.npmjs.com/package/junit-report-builder)
A project aimed at making it easier to build [Jenkins](http://jenkins-ci.org/) compatible XML based JUnit reports.
## Installation
To install the latest version, run:
npm install junit-report-builder --save
## Usage
```JavaScript
var builder = require('junit-report-builder');
// Create a test suite
var suite = builder.testSuite().name('My suite');
// Create a test case
var testCase = suite.testCase()
.className('my.test.Class')
.name('My first test');
// Create another test case which is marked as failed
var testCase = suite.testCase()
.className('my.test.Class')
.name('My second test')
.failure();
builder.writeTo('test-report.xml');
```
This will create `test-report.xml` containing the following:
```XML
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="2" failures="1" errors="0" skipped="0">
<testsuite name="My suite" tests="2" failures="1" errors="0" skipped="0">
<testcase classname="my.test.Class" name="My first test"/>
<testcase classname="my.test.Class" name="My second test">
<failure/>
</testcase>
</testsuite>
</testsuites>
```
If you want to create another report file, start by getting a new
builder instance like this:
```JavaScript
builder = builder.newBuilder();
```
Please refer to the [e2e_spec.coffee](spec/e2e_spec.coffee) for more details on the usage.
## License
[MIT](LICENSE)
## Changelog
### 3.2.1
- Update documentation.
### 3.2.0
- Support name and test count attributes for the root test suites element. Thanks to [Simeon Cheeseman](https://github.com/SimeonC).
- Describe parameter types and return types with JSDoc. Thanks to [Simeon Cheeseman](https://github.com/SimeonC).
### 3.1.0
- Add support for generic properties for test cases. Thanks to [Pietro Ferrulli](https://github.com/Pi-fe).
- Bump dependencies
### 3.0.1
- Bump dependencies: lodash, make-dir, date-format, minimist
### 3.0.0
- Properly prevent invalid characters from being included in the XML files.
- Dropped support for node.js 4 and 6
### 2.1.0
- Added support for adding a `file` attribute to a test case. Thanks to [Ben Holland](https://github.com/hollandben).
### 2.0.0
- Replace mkdirp by make-dir to resolve [npm advisory 1179](https://www.npmjs.com/advisories/1179).
- Dropped support for node.js 0.10.x and 0.12.x
### 1.3.3
- Updated lodash to a version without known vulnerabilities.
### 1.3.2
- Added support for emitting the type attribute for error and failure elements of test cases
- Added support for emitting cdata/content for the error element of a test case
Thanks to [Robert Turner](https://github.com/rturner-edjuster).
### 1.3.1
- Update dependencies to versions without known vulnerabilities.
### 1.3.0
- Support [attaching files to tests](http://kohsuke.org/2012/03/13/attaching-files-to-junit-tests/). Thanks to [anto-wahanda](https://github.com/anto-wahanda).
### 1.2.0
- Support creating XML with emojis. Thanks to [ischwarz](https://github.com/ischwarz).
### 1.1.1
- Changed `date-format` to be a dependency. Previously it was incorrectly set to be a devDependency. Thanks to [georgecrawford](https://github.com/georgecrawford).
### 1.1.0
- Added attributes for test count, failure count, error count and skipped test count to testsuite elements
- Added ability to attach standard output and standard error logs to test cases
- Added ability set execution time for test suites
- Added ability set timestamp for test suites
### 1.0.0
- Simplified API by making the index module export a builder instance
### 0.0.2
- Corrected example in readme
### 0.0.1
- Initial release