Crates.io | cargo-suity |
lib.rs | cargo-suity |
version | 0.3.0 |
source | src |
created_at | 2019-02-10 04:35:29.66701 |
updated_at | 2021-04-12 00:12:31.269411 |
description | Utility to automate test runs and report results in JUnit format |
homepage | https://github.com/andoriyu/cargo-suity |
repository | https://github.com/andoriyu/cargo-suity |
max_upload_size | |
id | 113843 |
size | 57,012 |
This tool helps you automate testing of you rust application on CI. Currently it can run defined workflows and
report results in JUnit format. It's using unstable rust-test
feature and may break... Under the good suity executes
cargo
as sub-process and parses its output.
$ cargo install -f cargo-suity
$ cargo suity
Current version is missing any sort of argument variables. It just runs all of workflows it could find. Which probably covers most of the use cases... In order to view JUnit file you probably need support of your CI (click on azure pipelines badge to see what I'm talking about) or some kind of viewer.
- 0 all tests across all workflows passes
- 101 - ran into error (permission denied, out of disk space, etc)
- N number of failed tests
suity.toml
)File is optional. If not specified then default configuration is used. Here is an example configuration:
[global]
features = []
format = "JUnit"
output = "./test-results"
[workflow.default]
doc = false
unit = true
integration = ["*"]
[workflow.integration-cfg-serde]
doc = false
unit = false
integration = ["not_really_a_test"]
global
is used to override default values in all workflows.workflow.<name>
is used to define workflow.key | description | Possible values | default |
---|---|---|---|
name | override name for workflow | Any string | name part in workflow.<name> |
features | List of features to use | List of any strings | crate's default features |
format | Test result output format | JUnit | JUnit |
output | Where to save test results | any writeable path | ./test-results |
doc | Test this library's documentation. | true / false | true |
lib | Test this package's library. | true / false | true |
integration | an array of integration tests files in tests/ folder without extension.) |
"*" (all of them) |
Honestly...code is a mess. Only rust-test's json to JUnit
part is covered by tests. I didn't even try running
clippy
on it. However, I'm using it other projects and on itself.