Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 988 Bytes

test_case_naming.md

File metadata and controls

29 lines (20 loc) · 988 Bytes

Test case naming conventions

The name of a test case conforms to Test<method name>_<tag>_<description>, except for those in emulator_based_test.go.

<method name> is one of the following:

  • ReadRow
  • ReadRows
  • MutateRow
  • MutateRows
  • ReadModifyWriteRow
  • CheckAndMutateRow
  • SampleRowKeys

<tag> is one of the following:

  • Generic: The features under test are method-agnostic. For example, all requests should have client and resource info in the header.
  • Retry: The test exercises the retry behavior of the client when receiving a transient error for a method.
  • NoRetry: The test exercises non-retry behavior of the client. For example, the client can succeed or fail as expected when receiving a specific response for a method.

<description> is a concise description of the test scenario.

Example names:

  • TestReadModifyWriteRow_NoRetry_MultiValues
  • TestMutateRows_Retry_ExponentialBackoff
  • TestReadRows_Generic_Headers