Skip to content

Commit

Permalink
feat(jasmine_node_test): add attr jasmine_config
Browse files Browse the repository at this point in the history
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
    }
    ```
  • Loading branch information
qzmfranklin authored and alexeagle committed Aug 5, 2019
1 parent fd99cbc commit 715ffc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/jasmine/src/jasmine_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ function main(args) {
const cwd = process.cwd()

const jrunner = new JasmineRunner({jasmineCore: jasmineCore});
if (args.length == 3) {
jrunner.loadConfigFile(args[2]);
}
const allFiles = fs.readFileSync(manifest, UTF8)
.split('\n')
.filter(l => l.length > 0)
Expand Down

0 comments on commit 715ffc6

Please sign in to comment.