Skip to content

Commit

Permalink
Rust: Add Testing cross-content entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Nov 2, 2023
1 parent 6fffcc8 commit b789ac8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .doc_gen/cross-content/testing_Rust_block.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "file://zonbook/docbookx.dtd" [
<!ENTITY % phrases-shared SYSTEM "file://AWSShared/common/phrases-shared.ent">
%phrases-shared;
]>
<block>
<para>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 <ulink url="https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/rust_dev_preview/examples/testing">GitHub</ulink>.</para>
</block>
20 changes: 20 additions & 0 deletions .doc_gen/metadata/cross_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b789ac8

Please sign in to comment.