Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 2.09 KB

jasmine_test.md

File metadata and controls

29 lines (19 loc) · 2.09 KB

rules_jasmine public API

jasmine_test

jasmine_test(name, node_modules, jasmine_reporters, config, timeout, size, data, kwargs)

Runs jasmine under bazel test

PARAMETERS

Name Description Default Value
name A unique name for this target. none
node_modules Label pointing to the linked node_modules target where jasmine is linked, e.g. //:node_modules.

jasmine must be linked into the node_modules supplied. jasmine-reporters is also required by default when jasmine_reporters is True jasmine-core is required when using sharding.
none
jasmine_reporters Whether jasmine-reporters is present in the supplied node_modules tree.

When enabled, adds a custom reporter to output junit XML to the path where Bazel expects to find it.
True
config jasmine config file. See: https://jasmine.github.io/setup/nodejs.html#configuration None
timeout standard attribute for tests. Defaults to "short" if both timeout and size are unspecified. None
size standard attribute for tests None
data Runtime dependencies that Jasmine should be able to read.

This should include all test files, configuration files & files under test.
[]
kwargs Additional named parameters from js_test. See js_test docs none