Anonymous Test
Definition:
An anonymous test is a test whose name is meaningless as it doesn’t express the purpose of the test in the current context. However tests can be regarded as documentation, and the name is an important part of that as it should abstract what the test is all about.
Also Known As:
Unclear Naming, Naming Convention Violation
Code Example:
@Test
public void test1() {
// test user login
LoginPage.login("user", "password");
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring