Mystery Guest
Definition:
A test case that uses external resources that are not managed by a fixture. A drawback of this approach is that the interface to external resources might change over time necessitating an update of the test case, or that those resources might not be available when the test case is run, endangering the deterministic behavior of the test.
Also Known As:
External Data
Code Example:
public void testGetFlightsByFromAirport_OneOutboundFlight_mg() throws Exception {
loadAirportsAndFlightsFromFile("test-flights.csv");
// Exercise System
List flightsAtOrigin = facade.getFlightsByOriginAirportCode( "YYC");
// Verify Outcome
assertEquals( 1, flightsAtOrigin.size());
FlightDto firstFlight = (FlightDto) flightsAtOrigin.get(0);
assertEquals( "Calgary", firstFlight.getOriginCity());
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring
A preliminary evaluation on the relationship among architectural and test smells
An Empirical Study into the Relationship Between Class Features and Test Smells
An Exploratory Study on the Refactoring of Unit Test Files in Android Applications
An exploratory study of the relationship between software test smells and fault-proneness
Assessing diffusion and perception of test smells in scala projects
Automatic Identification of High-Impact Bug Report by Product and Test Code Quality
Enhancing developers’ awareness on test suites’ quality with test smell summaries
Handling Test Smells in Python: Results from a Mixed-Method Study
How are test smells treated in the wild? A tale of two empirical studies
On the Distribution of “Simple Stupid Bugs” in Unit Test Files: An Exploratory Study
On the diffusion of test smells and their relationship with test code quality of Java projects
On the diffusion of test smells in automatically generated test code: an empirical study
On the distribution of test smells in open source Android applications: an exploratory study
On the interplay between software testing and evolution and its effect on program comprehension
On the test smells detection: an empirical study on the jnose test accuracy
Refactoring Test Smells With JUnit 5: Why Should Developers Keep Up-to-Date?
Revisiting Test Smells in Automatically Generated Tests: Limitations, Pitfalls, and Opportunities
Scented since the beginning: On the diffuseness of test smells in automatically generated test code
TestAXE: Automatically Refactoring Test Smells Using JUnit 5 Features
TestQ: Exploring Structural and Maintenance Characteristics of Unit Test Suites
The Relation of Test-Related Factors to Software Quality: A Case Study on Apache Systems
The secret life of test smells-an empirical study on test smell evolution and maintenance
To What Extent Can Code Quality be Improved by Eliminating Test Smells?
Toward static test flakiness prediction: a feasibility study