在线上有很多示例,涉及如何在SpecRunner.html文件中设置独立的茉莉花测试,如下所示:
<!doctype html>
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" href="bower_components/jasmine/lib/jasmine-core/jasmine.css">
</head>
<body>
<script src="bower_components/jasmine/lib/jasmine-core/jasmine.js"></script>
<script src="bower_components/jasmine/lib/jasmine-core/jasmine-html.js"></script>
<!-- include source files here... -->
<!-- include spec files here... -->
通过这种设置,我将如何配置Jasmine设置,例如在node.js或gulp设置中找到的设置?我说的是诸如random: false
,设置随机种子以及其他非特定于跑步者的设置。