From b299fae602167c8abf8db2022d667a1c1a57d7ee Mon Sep 17 00:00:00 2001 From: David Souther Date: Thu, 2 Nov 2023 15:48:25 -0400 Subject: [PATCH] Rust: Add Testing cross-content entry. --- .doc_gen/cross-content/testing_Rust_block.xml | 8 ++++++++ .doc_gen/metadata/cross_metadata.yaml | 20 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .doc_gen/cross-content/testing_Rust_block.xml diff --git a/.doc_gen/cross-content/testing_Rust_block.xml b/.doc_gen/cross-content/testing_Rust_block.xml new file mode 100644 index 00000000000..e3b2796ec17 --- /dev/null +++ b/.doc_gen/cross-content/testing_Rust_block.xml @@ -0,0 +1,8 @@ + + + %phrases-shared; +]> + + There are several ways to perform unit and integration testing using &Rustlong;. For complete source code and instructions on how to set up and run testing, see the full set of examples on GitHub. + \ No newline at end of file diff --git a/.doc_gen/metadata/cross_metadata.yaml b/.doc_gen/metadata/cross_metadata.yaml index 85746027908..927f772d232 100644 --- a/.doc_gen/metadata/cross_metadata.yaml +++ b/.doc_gen/metadata/cross_metadata.yaml @@ -694,3 +694,23 @@ cross_ResilientService: DescribeLoadBalancers, CreateTargetGroup, DescribeTargetGroups, DeleteTargetGroup, CreateLoadBalancer, CreateListener, DeleteLoadBalancer, DescribeTargetHealth} iam: {CreateInstanceProfile, DeleteInstanceProfile} +cross_Testing: + title: Example approaches for unit and integration testing an &AWS; SDK. + title_abbrev: Unit and integration test with an SDK + synopsis: examples for best-practice techniques when writing unit and integration tests using an &AWS; SDK. + languages: + Rust: + versions: + - sdk_version: 1 + github: rust_dev_preview/examples/testing + block_content: testing_Rust_block.xml + # excerpts: + # - description: Cargo.toml for testing examples + # snippet_files: + # - rust_dev_preview/examples/testing/Cargo.toml + # - description: Unit testing example using automock and a service wrapper. + # snippet_files: + # - rust_dev_preview/examples/testing/src/wrapper.rs + # - description: Integration testing example using StaticReplayClient. + # snippet_files: + # - rust_dev_preview/examples/testing/src/replay.rs \ No newline at end of file