Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bazel/jasmine

Package Overview
Dependencies
Maintainers
5
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bazel/jasmine

Run Jasmine tests under Bazel

  • 2.0.0-rc.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
increased by2.64%
Maintainers
5
Weekly downloads
 
Created
Source

Jasmine rules for Bazel

The Jasmine rules run tests under the Jasmine framework with Bazel.

Installation

Add the @bazel/jasmine npm package to your devDependencies in package.json. [name]: https://bazel.build/docs/build-ref.html#name [label]: https://bazel.build/docs/build-ref.html#labels [labels]: https://bazel.build/docs/build-ref.html#labels

jasmine_node_test

Runs tests in NodeJS using the Jasmine test runner.

Detailed XML test results are found in the standard bazel-testlogs directory. This may be symlinked in your workspace. See https://docs.bazel.build/versions/master/output_directories.html

To debug the test, see debugging notes in nodejs_test.

Usage

jasmine_node_test(name, srcs, data, deps, expected_exit_code, tags, config_file, jasmine, jasmine_entry_point, kwargs)
name

Name of the resulting label

srcs

JavaScript source files containing Jasmine specs

Defaults to []

data

Runtime dependencies which will be loaded while the test executes

Defaults to []

deps

Other targets which produce JavaScript, such as ts_library

Defaults to []

expected_exit_code

The expected exit code for the test.

Defaults to 0

tags

Bazel tags applied to test

Defaults to []

config_file

(experimental) label of a file containing Jasmine JSON config.

Note that not all configuration options are honored, and we expect some strange feature interations. For example, the filter for which files are instrumented for code coverage doesn't understand the spec_files setting in the config.

See https://jasmine.github.io/setup/nodejs.html#configuration

Defaults to None

jasmine

A label providing the @bazel/jasmine npm dependency.

Defaults to "//@bazel/jasmine"

jasmine_entry_point

A label providing the @bazel/jasmine entry point.

Defaults to "//:node_modules/@bazel/jasmine/jasmine_runner.js"

kwargs

Remaining arguments are passed to the test rule

Keywords

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc