#test-framework #framework #integration #bdd #integra8 #integration-tests #test-suite

integra8_decorations

Integra8 测试框架用于构建测试套件层次结构的集合扁平简写对象集合

3 个版本

0.0.4-alpha2022年3月20日
0.0.3-alpha2022年3月7日
0.0.2-alpha2022年2月4日
0.0.1-alpha 2022年2月1日

#2121 in 开发工具

MIT/Apache

130KB
3K SLoC

向 Integra8 问好。

草稿发布! 此crate已准备好非alpha版本发布!剩余工作:[ ] 将所有crate重构为单个Uber包 [ ] 使用树形格式化器作为默认格式化器 [ ] 发布到doc.rs

未来不会有最小/非破坏性的更改。

享受 Integra8ing!

#[macro_use]
pub extern crate integra8;

main_test! {}

#[suite]
mod introducing {
    #[setup]
    fn setup() {
        println!("Get Ready ...");
    }

    #[integration_test]
    fn hello_world_test() {
        println!("Hello integra8!");
    }

    #[teardown]
    fn teardown() {
        println!("Enjoy!");
    }
}


为什么选择 Integra8?

感谢其蓬勃发展的社区,Rust 在技术栈中的用途越来越多。随着这种增长,需要新的工具来满足其新的需求。

Rust 内置了对持续集成测试的大力支持,Integra8 的目标是将其相同的体验带到持续部署测试的一侧。

以下情况下应考虑使用 Integra8:

  • Web 服务测试
  • Web 前端测试
  • 蓝/绿云部署
  • 多环境认证
  • 同时运行多个测试
  • 任何具有长时间运行阻塞IO的东西

为什么不选择 Integra8?

Integra8 并不旨在取代 Rust 现有的内置 libtest 框架。libtest 很棒,Integra8 的许多功能都可以通过社区中已有的功能来复制。

开始使用

Integra8 的外观和感觉与大多数其他测试框架类似,因此在学习了一些基础知识后,开始使用应该会很直观。然而,作为一个面向持续部署的框架,Integra8 提供的不仅仅是测试。

请参阅入门指南 此处

享受 Integra8ing!

依赖项

~2.3–3.5MB
~66K SLoC