1.0.0 • Published 6 years ago

newman-reporter-ros-scenario v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
6 years ago

newman-reporter-ros-scenario

A modified JUnit newman reporter designed for use with ROS and C++ GTest

Overview

This reporter is to help produce Newman JUnit output which aims to be closer in syntax to the JUnit XML produced by GTest, and to help facilitate the generation of test reports which emulate external manipulations of a long-running stateful machine (like a robot)

The main difference between this reporter and the stock JUnit one is with what Postman elements match to which JUnit elements.

JUnit TagStock reporterros-scenarioROS GTest
testsuitesCollectionCollectionAll Tests in a ROS Test
testsuiteFolder/RequestFolderTEST(__Suite__, Name)
testcaseEach pm.testRequestTEST(Suite, __Name__)
failurepm.test detailsFailed pm.testEXPECT*, ASSERT*

To allow for this sort of match up, this reporter requires your collection to conform to a Collection structure. Each Request must be contained in a Folder, which is contained in the root of the Collection. Your Collection should look something like this:

|_____ Folder1 _____ Request11
|             |
|             |_____ Request12
|             |
|             |_____ Request13
|
|_____ Folder2 _____ Request21
              |
              |_____ Request22
              |
              |_____ Request23

Any requests that don't fit this structure will still be executed, but their results will not be recorded.

Given that HTTP API manipulations in ROS are likely emulating control from a C&C server or user signals from an external application, these Folders can sensibly represent a long running external interaction process you wish to test. This was the intended use case for its use in this CI project.

Options

--reporter-ros-scenario-export {PATH}.xml or just --reporter-export {PATH}.xml will allow you to set the output destination file, same as the original.

Acknowledgements

The original JUnit reporter which this was derived from.

1.0.0

6 years ago