GithubHelp home page GithubHelp logo

isabella232 / jasmine-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasmine/jasmine-py

0.0 0.0 0.0 338 KB

Jasmine... for python projects!

License: MIT License

Python 99.02% HTML 0.60% CSS 0.01% JavaScript 0.37%

jasmine-py's Introduction

Jasmine... For Python!

FOSSA Status

The Jasmine Python package contains helper code for developing Jasmine projects for Python-based web projects (Django, Flask, etc.) or for JavaScript projects where Python is a welcome partner. It serves up a project's Jasmine suite in a browser so you can focus on your code instead of manually editing script tags in the Jasmine runner HTML file.

For documentation on writing Jasmine tests, check out the Jasmine Documentation site.

Discontinued

The Jasmine packages for Python are discontinued. There will be no further releases. We recommend migrating that most users migrate to the jasmine-browser-runner NPM package, which is the direct replacement for the jasmine Python pacage.

If jasmine-browser-runner doesn't meet your needs, one of these might:

  • The jasmine npm package to run specs in Node.js.
  • The standalone distribution to run specs in browsers with no additional tools.
  • The jasmine-core npm package if all you need is the Jasmine assets. This is the direct equivalent of the jasmine-core Python package.

Contents

This package contains:

  • A small server that builds and executes a Jasmine suite for a project
  • A command line script to run your tests (handy for continuous integration)

You can get all of this by: pip install jasmine or by adding jasmine to your requirements.txt.

_init_ A Project

To initialize a project for Jasmine:

$ jasmine init

This will create a spec directory and configuration yaml template for you.

Configuration

Customize spec/javascripts/support/jasmine.yml to enumerate the source files, stylesheets, and spec files you would like the Jasmine runner to include. You may use dir glob strings.

Usage

Standalone Server

Start the Jasmine server:

$ jasmine server

Point your browser to localhost:8888. The suite will run every time this page is re-loaded.

Start Jasmine on a different port:

$ jasmine server -p 1337

Point your browser to localhost:1337.

For a full list of commands, type jasmine -h

Continuous Integration

For Continuous Integration environments, add this task to the project build steps:

$ jasmine ci

The browser used by selenium can be changed by exporting JASMINE_BROWSER

$ export JASMINE_BROWSER=phantomjs
$ jasmine ci

or adding --browser to jasmine-ci

$ jasmine ci --browser phantomjs

For a full list of commands, type jasmine ci -h

Support

Documentation: jasmine.github.io Jasmine Mailing list: [email protected] Twitter: @jasminebdd

Please file issues here at Github

Copyright (c) 2008-2017 Pivotal Labs. This software is licensed under the MIT License.

License

FOSSA Status

jasmine-py's People

Contributors

codingjoe avatar fossabot avatar ftobia avatar gerg avatar jboyens avatar jeffh avatar johnmanong avatar kaittodesk avatar moggers87 avatar o-fedorov avatar sgravrock avatar walrusfruitcake avatar wuzuf 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.