All Projects → bachp → junit-report-rs

bachp / junit-report-rs

Licence: MIT license
JUnit compatible XML reports in Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to junit-report-rs

CI-Report-Converter
The tool converts different error reporting standards for deep compatibility with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc).
Stars: ✭ 17 (+13.33%)
Mutual labels:  junit, report
phpjasperxml
This is a php wysiwyg report library
Stars: ✭ 37 (+146.67%)
Mutual labels:  report
kafka-junit
JUnit rule for spinning up a Kafka broker
Stars: ✭ 97 (+546.67%)
Mutual labels:  junit
ginkgo4j
A Java BDD Testing Framework (based on RSpec and Ginkgo)
Stars: ✭ 25 (+66.67%)
Mutual labels:  junit
spring-jooq-flyway-testcontainers-junit5
🚀 Example project with configured Spring Boot, JooQ, TestContainers, MySQL container and JUnit5
Stars: ✭ 29 (+93.33%)
Mutual labels:  junit
automation-report
Automation report是一款可以解决很多行业领域中设涉及到报告生成的需求,本项目最开始的初衷是为公司内部简化人工流程的一个环节,主要实现目的是将实验室检测得出的下机数据结果与对应的报告模版批量结合生成报告(.pdf)。
Stars: ✭ 13 (-13.33%)
Mutual labels:  report
django-flag-app
A pluggable django application that adds the ability for users to flag(or report) your models.
Stars: ✭ 13 (-13.33%)
Mutual labels:  report
junit-insights
Extension for JUnit which provides insights for the runtime of contexts, classes and methods
Stars: ✭ 112 (+646.67%)
Mutual labels:  junit
django-survey
A django survey app that can export results as CSV or PDF using your native language.
Stars: ✭ 178 (+1086.67%)
Mutual labels:  report
Template-Informe
Template de informe en LaTeX para tareas y trabajos
Stars: ✭ 90 (+500%)
Mutual labels:  report
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (+100%)
Mutual labels:  junit
testing-spring-boot-applications-masterclass
🍃 Everything You Need to Know About Testing Spring Boot Applications
Stars: ✭ 185 (+1133.33%)
Mutual labels:  junit
giulius-selenium-tests
A test harness that allows Selenium tests to be run using JUnit and test fixtures to be created and injected by a WebDriver-aware Guice
Stars: ✭ 12 (-20%)
Mutual labels:  junit
junit5-demo
Demos for JUnit 5
Stars: ✭ 46 (+206.67%)
Mutual labels:  junit
faketime
Fake currentTimeMillis() without class loader hacks
Stars: ✭ 100 (+566.67%)
Mutual labels:  junit
junit4git
Junit Extensions for Test Impact Analysis
Stars: ✭ 40 (+166.67%)
Mutual labels:  junit
CellReport
CellReport 是一个netcore实现的、以复杂统计报表为核心目标的制作、运行工具。支持数据看板、大屏制作。你可以使用数据库、excel文件、api服务、已有报表等为数据源,通过内置的集合函数组织数据,以类excel界面设计最终呈现结果。
Stars: ✭ 196 (+1206.67%)
Mutual labels:  report
AsBuiltReport.VMware.vSphere
Repository for AsBuiltReport VMware vSphere module
Stars: ✭ 75 (+400%)
Mutual labels:  report
pytest-html-reporter
Generates a static html report based on pytest framework
Stars: ✭ 69 (+360%)
Mutual labels:  report
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (+73.33%)
Mutual labels:  report

JUnit Report in Rust

Generate JUnit compatible XML reports in Rust.

Example

    use junit_report::{datetime, Duration, ReportBuilder, TestCase, TestCaseBuilder, TestSuite, TestSuiteBuilder};
    use std::fs::File;

    // Create a successful test case
    let test_success = TestCaseBuilder::success("good test", Duration::seconds(15))
        .set_classname("MyClass")
        .set_filepath("MyFilePath")
        .build();

    // Create a test case that encountered an unexpected error condition
    let test_error = TestCase::error(
        "error test",
        Duration::seconds(5),
        "git error",
        "unable to fetch",
    );

    // Create a test case that failed because of a test failure
    let test_failure = TestCase::failure(
        "failure test",
        Duration::seconds(10),
        "assert_eq",
        "not equal",
    );

    // Next we create a test suite named "ts1" with not test cases associated
    let ts1 = TestSuite::new("ts1");

    // Then we create a second test suite called "ts2" and set an explicit time stamp
    // then we add all the test cases from above
    let timestamp = datetime!(1970-01-01 00:01:01 UTC);
    let ts2 = TestSuiteBuilder::new("ts2")
        .set_timestamp(timestamp)
        .add_testcase(test_success)
        .add_testcase(test_error)
        .add_testcase(test_failure)
        .build();

    // Last we create a report and add all test suites to it
    let r = ReportBuilder::new()
        .add_testsuite(ts1)
        .add_testsuite(ts2)
        .build();

    // The report can than be written in XML format to any writer
    let mut file = File::create("my-junit.xml").unwrap();
    r.write_xml(&mut file).unwrap();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].