Add 0010-backticks-for-junit-tests.md ADR

This commit is contained in:
Davide Giuseppe Farella 2021-11-04 10:38:53 +00:00 committed by Zorica Stojchevska
parent a77909e941
commit 719e33a575
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Use backticks for jUnit tests' naming
* Status: Accepted
* Deciders: Marino, Zorica, Stefanija, Davide, Maciej
* Date: 27/10/2021
## Context and Problem Statement
We want a format that empowers readability of test cases, that doesn't make this decay when we add many informations.
## Considered Options
* Keep the current `camelCase` format
* **Switch to use `` `backticks format` ``**
* Current format has been chosen in order to keep consistency with instrumented tests, which don't support backticks
## Decision Outcome
We decided that backticks is the most human readable format, that enables us to add many information into the test case's name, without sacrificing the readability.
## Consequences
1. All the new test cases will use the backticks format
2. When adding new test cases to a pre-existing class that uses camel case, the developer must evaluate whether is feasible to rename not compliant pre-existing test cases