Test Catalog

It's a simple tool to collect test cases information and export as a catalog.

First, install test-catalog binary with cargo install test-catalog.

To use the test catalog specification, please add the dependencies to Cargo manifest file (Cargo.toml):

toml [dev-dependecies] proc-test-catalog = "0.1.0" test-catalog = "0.1.0"

Note that the proc-test-catalog crate needs nightly channel to compile.

After then, additional to legacy test cases, you should use #[proc_test_catalog::test_catalogue] attribute after #[test], and then add the case description in the document line.

```rust

[test]

[proctestcatalog::test_catalogue(since = "0.1.0")]

/// This is preferred case description. fn it_works() { // some test codes. println!("ok"); } ```

Full supported attributes list for test_catalogue proc macro are listed beblow:

And then, apply cargo test, and export the test catalog with test-catalog tool.

Full information list about a test case is:

The test-catalog tool could export the test catalog to many file formats, including markdown, confluence wiki markup, tab-separated text(tsv), csv, or json, markdown by default.

For example, export the test catalog to CSV:

bash test-catalog -f csv