Skip to content

Tag Java tests #4176

Closed
Closed
@ford-at-aws

Description

@ford-at-aws

User story

As a code example engineer, I want to be able to run unit and integration tests independently by running a test command with a unit or integration tag, i.e. <test-command> <tag>.

In addition, I want all code examples tests to be tagged with at least one of the following:

  • integ
  • unit

If a test is broken, do not tag it.

Acceptance criteria

I know this is done when:

  • run unit and integration tests independently by running a test command with a unit or integration tag, i.e. <test-command> <tag> .

Implementation tips

You could accomplish this in a few different ways:

  • a language test framework command using an inclusion-based tag: dotnet test --tag @integ @unit
  • a bash script that implements custom tagging logic using a parameter, e.g. ./test.sh <tag>
  • or any other strategy consistent with your language’s best practices

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions