You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Mingshen Sun <no...@github.com> on 2020/04/21 01:07:46 UTC
[apache/incubator-teaclave] Automatic collect test cases into
inventory and support to run with predicate (#269)
## Description
- Introduce `[test_case]` to annotate a test case function.
- Introduce `run_inventory_tests!()` to run all registered test cases.
- Use `run_inventory_tests!(predicate)` where `predicate` is a closure with type `|&str| -> bool` to filter test cases. The first param is the full path of the registered test function.
- Functional test is rewritten with these helpers.
- `crates-sgx` and `crates-io` are also updated with `inventory` 0.1.6.
CI passed (https://ci.mesalock-linux.org/mssun/incubator-mesatee/680)
You can view, comment on, or merge this pull request online at:
https://github.com/apache/incubator-teaclave/pull/269
-- Commit Summary --
* [tests] Automatic collect test cases into inventory and support to run with predicate
-- File Changes --
M tests/functional/enclave/Cargo.toml (5)
M tests/functional/enclave/src/access_control_service.rs (26)
M tests/functional/enclave/src/authentication_service.rs (20)
M tests/functional/enclave/src/end_to_end/mesapy_echo.rs (2)
M tests/functional/enclave/src/end_to_end/mod.rs (20)
M tests/functional/enclave/src/end_to_end/native_echo.rs (2)
M tests/functional/enclave/src/end_to_end/native_gbdt_training.rs (2)
M tests/functional/enclave/src/execution_service.rs (8)
M tests/functional/enclave/src/frontend_service.rs (46)
M tests/functional/enclave/src/lib.rs (44)
M tests/functional/enclave/src/management_service.rs (34)
M tests/functional/enclave/src/scheduler_service.rs (9)
M tests/functional/enclave/src/storage_service.rs (22)
M tests/functional/enclave/src/utils.rs (11)
M tests/utils/Cargo.toml (2)
A tests/utils/proc_macro/Cargo.toml (13)
A tests/utils/proc_macro/src/lib.rs (41)
M tests/utils/src/lib.rs (26)
M third_party/crates-io (2)
M third_party/crates-sgx (2)
-- Patch Links --
https://github.com/apache/incubator-teaclave/pull/269.patch
https://github.com/apache/incubator-teaclave/pull/269.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/269
Re: [apache/incubator-teaclave] Automatic collect test cases into
inventory and support to run with predicate (#269)
Posted by Mingshen Sun <no...@github.com>.
Merged #269 into master.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/269#event-3254145147