My Runner document is like this:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v2.5.2</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine- 2.5.2/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-2.5.2/jasmine.css">
<script src="lib/jasmine-2.5.2/jasmine.js"></script>
<script src="lib/jasmine-2.5.2/jasmine-html.js"></script>
<script src="lib/jasmine-2.5.2/boot.js"></script>
<script src="http://ift.tt/1Jnp6Q0"></script>
<!-- include source files here... -->
<script src="src/DarsChartConfig.js" ></script>
<!-- include spec files here... -->
<script src="spec/DarsChartConfigSpec.js" ></script>
</head>
<body>
</body>
</html>
It works well and generate the test:
Now I download the Blanket.js and add the code:
<script type="text/javascript" src="lib/blanket.js" data-cover- adapter="lib/jasmine-blanket.js"></script>
I add this line of code after the source document and before the spec document. But nothing happened. This does not generate the code coverage for me. Did I do something wrong or is there any way I can generate code coverage report with Jasmine? Thanks!
Aucun commentaire:
Enregistrer un commentaire