% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_covr_skip_stf.R
\name{fix_test_context}
\alias{fix_test_context}
\title{Fix Missing Test Contexts}
\usage{
fix_test_context(test_results)
}
\arguments{
\item{test_results}{A list of test result objects from `testthat`.}
}
\value{
A list of test results with updated contexts.
}
\description{
Ensures that each test result has a valid `context` field.
If missing or empty, the context is set to the file name (without extension).
}
\keyword{internal}
