Skip to content

Commit 715ffc6

Browse files
qzmfranklinalexeagle
authored andcommitted
feat(jasmine_node_test): add attr jasmine_config
This commit enables the `jasmine_node_test` rule to be configured on a per-test basis through jasmine's configuration file. The demanding situation for me was to turn off randomnization (default to on in Bazel) to guarantee some test results. This would incur adding the following attribute to jasmine's configuration file: ```json { "random": false } ```
1 parent fd99cbc commit 715ffc6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/jasmine/src/jasmine_runner.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ function main(args) {
6969
const cwd = process.cwd()
7070

7171
const jrunner = new JasmineRunner({jasmineCore: jasmineCore});
72+
if (args.length == 3) {
73+
jrunner.loadConfigFile(args[2]);
74+
}
7275
const allFiles = fs.readFileSync(manifest, UTF8)
7376
.split('\n')
7477
.filter(l => l.length > 0)

0 commit comments

Comments
 (0)