Git Product home page Git Product logo

junit-jasmine-runner's Introduction

JUnit Jasmine Runner

Features

  • Runs Jasmine Tests with JUnit
  • Integrates with Eclipse, IntelliJ, Maven etc.
  • Uses Java Nashorn JavaScript interpreter
  • Optional Browser Support (with Envjs)
  • Supports Jasmine 2

Requirements

  • Java 8

Usage

Add project dependency. E.g if you use maven:

<dependency>
  <groupId>de.helwich.junit</groupId>
  <artifactId>junit-jasmine-runner</artifactId>
  <version>0.1.3</version>
  <scope>test</scope>
</dependency>

Or download from here.

Add Java class (below src/test/java for maven) which name ends with β€œTest”. The class specifies the JavaScript test and source files:

import de.helwich.junit.*;
import org.junit.runner.RunWith;

@RunWith(JasmineTestRunner.class)
@JasmineTest(
    src =  { "Song", "Player" },
    test = { "SpecHelper", "PlayerSpec" },
    browser = false
)
public class RunJasmineTest {}

By default the tests are expected to be below src/test/js and the sources below src/main/js. The default file suffix is .js.

Release

mvn clean deploy -P release
cd target
jar -cvf bundle.jar junit-jasmine-runner-*
  • login here
  • Build Promotion > Staging Upload > Artifact Bundle > Select Bundle to Upload
  • Build Promotion > Staging Repositories > Select > Release

ToDo

  • optionally emit HTML runner

junit-jasmine-runner's People

Contributors

hhelwich avatar the-alchemist avatar tntim96 avatar hhelwich-iplabs avatar

Watchers

Paul Blair avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.