QUnit solo está ejecutando la primera prueba


No puedo hacer que QUnit ejecute ninguna prueba después de la primera. Para asegurarme de que no estaba haciendo algo raro, reduje el código para que fuera lo más básico posible.

test("A", function () {
    ok(true, "Test A");
});
test("B", function () {
    ok(true, "Test B");
});

La prueba A es la única que se ejecuta. No hay errores lanzados o cualquier otra cosa.

Mi archivo HTML se ve así.

<!DOCTYPE html>
<html>
<head>
   <title>Test title</title>
   <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.10.0.css">
</head>
<body>
   <div id="qunit"></div>
   <script src="http://code.jquery.com/qunit/qunit-1.10.0.js"></script>
   <script src="tests.js" type="text/javascript"></script>
</body>
</html>
Author: Mims H. Wright, 2012-12-07

2 answers

Encontró el problema. Fue esto!

qunit.html?testNumber=1

Supongo que en algún momento golpeé rerun e ignoró las otras pruebas!

Esta otra pregunta merece el crédito por señalarme en la dirección correcta. QUnit No Ejecutará Pruebas

 62
Author: Mims H. Wright,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 12:08:49

Muy similar a la respuesta de Mims H. Wright.

También presioné "volver a ejecutar" en una prueba fallida, y agregó el testId a mi url, lo que no noté.

tests.html?testId=fb134038
 0
Author: Lundy,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-07-25 18:33:09