junit-xml-ml

버전 1.0.0.8 (423 KB) 작성자: Jed F.
Creates JUnit XML test result documents that can be read by tools such as Jenkins.
다운로드 수: 146
업데이트 날짜: 2017/8/12

라이선스 보기

junit-xml-ml

Creates JUnit XML test result documents that can be read by tools such as Jenkins. Aims to be the Matlab equivalent of junit-xml for Python.

A Matlab class for creating JUnit XML test result documents that can be read by tools such as Jenkins. If you are ever working with test tool or test suite written in Matlab and want to take advantage of Jenkins’ pretty graphs and test reporting capabilities, this module will let you generate the XML test reports.

Matlab R2015b does include matlab.unittest.plugins.XMLPlugin class that writes test results to a file in XML format. The difficulty with the using the unittest framework is that your code must be structured as a test.

This makes it difficult to shoehorn into legacy code bases I've inherited.

Project Motivation:

  • Manager: Here's a code base, you get to run it now. The individual that wrote it has moved on.
  • "Can I have Jenkins run it?"
  • Manager: As long as the results are the same and it's right.

Examples

  • Example 01 Minimal xml file generated from a single test case.

  • Example 02 JUnit xml file generated from multiple tests. One of each status type.

  • Example 03 Generate test cases and add them to a test suite in a loop.

  • Example 04 Generate test cases and add them to a test suite in a loop. Pass, fail, error and skip tests based on randomly generated number.

  • Example 10 Full 'real world' example with passing, skipping & errors.

  • Example 11 Full 'real world' example with only errors.

  • Example 12 Tested functions to get stack.

  • Example 13 AbUsing globals to keep track of test cases.

See Examples folder for .m source code..

인용 양식

Jed F. (2024). junit-xml-ml (https://www.mathworks.com/matlabcentral/fileexchange/64094-junit-xml-ml), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Adding custom doc에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

+junit/@TestCase/

+junit/@TestSuite/

Examples/

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0.8

Mathwork's linking to github is broken. You shouldn't download the whole repo just to get the toolbox. It also doesn't take into account branches or any thing else.

1.0.0.0