#框架 #测试框架 #集成 #integra8 #BDD #集成测试 #测试

过程宏 integra8_decorations_impl

用于声明Integra8测试框架所使用的测试组件的过程宏

5 个版本

0.0.5-rc12022年3月21日
0.0.4-alpha2022年3月20日
0.0.3-alpha2022年3月7日
0.0.2-alpha2022年2月4日
0.0.1-alpha2022年2月1日

#10#integra8


4 个 crate (2 直接) 使用

MIT/Apache

36KB
787

用Integra8说“Hello world”。

RC1 发布!后续不会出现重大变化。

祝您使用Integra8愉快!

#[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前端测试
  • 蓝/绿云部署
  • 多环境认证
  • 同时运行多个测试
  • 任何具有长时间运行的阻塞I/O的操作

为什么不选择Integra8?

Integra8的目标不是取代Rust现有的内置libtest框架。libtest非常出色,Integra8的许多功能都可以通过社区中已有的功能来复制。

开始使用

Integra8看起来和感觉就像大多数其他测试框架一样,在学习了一些基础知识之后,开始使用应该会很直观。然而,作为一个旨在用于持续部署的框架,Integra8提供了比测试更多。

查看入门指南 这里

祝您使用Integra8愉快!

依赖项

~1.5MB
~37K SLoC