We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11537ff commit 554a89bCopy full SHA for 554a89b
core/Run.ts
@@ -207,6 +207,15 @@ namespace Moduless
207
return true;
208
}
209
210
+ /**
211
+ * Returns the name of the cover function currently being tested.
212
+ */
213
+ export function getRunningFunctionName()
214
+ {
215
+ return runningFunctionName;
216
+ }
217
+ let runningFunctionName = "";
218
+
219
/** */
220
export async function runSingleCover(
221
coverName: string,
@@ -216,7 +225,9 @@ namespace Moduless
225
return;
226
227
const coverFunctionName = coverName.replace(coverFnPrefixReg, "");
228
+ runningFunctionName = coverFunctionName;
229
let coverResult = coverFunction();
230
+ runningFunctionName = "";
231
232
if (coverResult === undefined || coverResult === null)
222
233
{
0 commit comments