Coder Social home page Coder Social logo

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jasmine-py's Issues

Jasmine doesn't terminate correctly in case it encounters some errors

Problem: If I have browser or WebDriver missing from my path, jasmine would only output error:

selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

And lots of log messages like

[16/Aug/2018:17:57:41] ENGINE Bus STOPPING
[16/Aug/2018:17:57:41] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 48657)) already shut down
[16/Aug/2018:17:57:41] ENGINE Stopped thread 'Autoreloader'.
[16/Aug/2018:17:57:41] ENGINE Bus STOPPED
[16/Aug/2018:17:57:41] ENGINE Bus STOPPING

But won't terminate. It creates troubles for CI since instead of reporting the error the test sutie would wait for jasmine to finish (which it'll never do) until it reaches some sort of timeout (which could be hours of wait).
Furthermore, it'll ignore Ctrl+C.

Relax PyYAML version

It is set to pretty old 3.10, and as such I can't use newer one in my project. Any reason why it's set to 3.10 instead of >= 3.10 ?

Can't include remote css files

Hi there,

I tried including stylesheets files from remote place but they are not considered remote. Instead, jasmine-py try to add them from localhost and I can the following errors (remote Javascript files works fine):

capture d ecran 2016-09-20 a 16 54 52

And here is my configuration:

src_files:
  - https://code.jquery.com/jquery-3.1.0.min.js
  - https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.4/js/tether.min.js
  - https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/js/bootstrap.min.js
  - https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min.js
  - https://cdnjs.cloudflare.com/ajax/libs/knockout.mapping/2.4.1/knockout.mapping.min.js
  - https://cdnjs.cloudflare.com/ajax/libs/jquery-noty/2.3.8/packaged/jquery.noty.packaged.min.js
  - https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js
  - static/pagerjs.min.js
  - static/app.js

# stylesheets
#
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
# Default: []
#
# EXAMPLE:
#
# stylesheets:
#   - css/style.css
#   - stylesheets/*.css
#
stylesheets:
  - static/style.css
  - https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css
  - https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.4/css/tether.min.css

jasmine init raises TypeError

$ pip freeze | grep jasmine
jasmine==3.1.0
jasmine-core==3.1.0
$ jasmine init
Traceback (most recent call last):
  File "/home/moggers/.virtualenvs/inboxen/bin/jasmine", line 11, in <module>
    load_entry_point('jasmine==3.1.0', 'console_scripts', 'jasmine')()
  File "/home/moggers/.virtualenvs/inboxen/lib/python2.7/site-packages/jasmine/entry_points.py", line 15, in begin
    cmd.run(sys.argv[1:])
  File "/home/moggers/.virtualenvs/inboxen/lib/python2.7/site-packages/jasmine/entry_points.py", line 64, in run
    args.func(args)
TypeError: init() takes exactly 1 argument (2 given)

A brief look at the code reveals that the init command method doesn't accept any arguments other than self and that call Command.run with "init" isn't covered by tests. I plan on submitting a PR later today to fix this issue.

Jasmine files not served with correct content type

Hi,

Since jasmine-py 2.6.0 (I believe, at least 2.5.0 was working), when I point my browser to http://localhost:8888/ with chrome, display is completely screwed up. After investigation, I believe this is linked to the jasmine_core files not being served with the correct content type. Apparently firefox is more permissive and guessing the type, hence it did not show up in your test cases.
I will submit a PR to fix this.

Gabriel

Jasmine-ci results in 500

jasmine-ci
Could not find your config file at /Users/pivotal/workspace/django_untrained/spec/javascripts/support/jasmine.yml
Traceback (most recent call last):
  File "/Users/pivotal/.virtualenvs/django_untrained/bin/jasmine-ci", line 9, in <module>
    load_entry_point('jasmine==2.0.1', 'console_scripts', 'jasmine-ci')()
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/jasmine/entry_points.py", line 40, in continuous_integration
    CIRunner().run(browser=args.browser)
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/jasmine/ci.py", line 71, in run
    lambda driver: driver.execute_script("return jsApiReporter.finished;")
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/selenium/webdriver/support/wait.py", line 63, in until
    value = method(self._driver)
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/jasmine/ci.py", line 71, in <lambda>
    lambda driver: driver.execute_script("return jsApiReporter.finished;")
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 401, in execute_script
    {'script': script, 'args':converted_args})['value']
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
    self.error_handler.check_response(response)
  File "/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u'jsApiReporter is not defined' ; Stacktrace:
    at anonymous (http://localhost:8889/:68)
    at handleEvaluateEvent (http://localhost:8889/:68)

Unbearably slow

Hi there,

I'm trying to use this with my project and found the jasmine as well as the jasmine-ci commands to be unbearably slow (it took about 10-20 seconds to load the spec suite).

What I found out is that the function _decode_raw is the culprit, as it consumes about 7 seconds of time per file.

For an example of a file that takes this long see: https://github.com/jdorn/json-editor/blob/master/dist/jsoneditor.js (which is also detected as TIS-620 with confidence 0.99 - which is utter bullshit - It's ascii or utf8)

It seems to me that this can easily be avoided by just constructing the request from the binary string read from the file (or by just handing in the file descriptor directly, perhaps even streaming it to the client) and letting the browser deal with the encodings (it can do that much better than python anyway).

Am I missing anything here?

Documentation

I can't find any kind of a documentation nor blog posts or example code that give away any usage instructions. This renders the package virtually useless. Especially the django part.

Please excuse my harsh words, and consider this an offer to help. I think this package could be very very very helpful for most full stack pythoneers.

jasmine-ci: support command line arguments to the target browser

Today while trying to debug a problem with phantomjs I was really hoping for a way to tell it to enable remote debugging.

Sadly seems to not be possible.

Looking at the source, supporting an environment variable to provide service_args here seems like a relatively simple solution.

jasmine-jquery fixtures

Hey I'm having some trouble with jasmine-jquery and jasmine-py. The helper works fine, but the fixtures don't at least not the once loading from filesystem.
Does anyone have any experience with that? I'll dig into the code to see why jasmine returns a 404 for the fixtures.
Cheers, joe

Code coverage tool missing

Is there a way to analyze/add code coverage to this Jasmine Python ?
Or maybe a way to integrate it with some existing tools (Blanketjs, Istanbul,...) in order to generate some coverage statistics ?
Thanks.

Documentation

I can't find any kind of a documentation nor blog posts or example code that give away any usage instructions. This renders the package virtually useless. Especially the django part.

Please excuse my harsh words, and consider this an offer to help. I think this package could be very very very helpful for most full stack pythoneers.

decode error in standalone.py when file encoding not recognized

standalone.py attempts to detect the encoding of each file to serve using chardet.

This fails when the encoding is not detected. I think the behavior is new as of #28.

I'm seeing the issue with png and woff2 files from an included library. chardet.detect(raw_contents) comes back with None for the encoding:

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> path = '/usr/app/static/scripts/bower_components/font-awesome/fonts/fontawesome-webfont.woff2'
>>> import chardet
>>> raw_contents = open(path, 'rb').read()
>>> encoding = chardet.detect(raw_contents)['encoding']
>>> encoding is None
True
>>> chardet.detect(raw_contents)
{'confidence': 0.0, 'encoding': None}

Printing the output in the serve method of standalone.py I see things like this:

filetype src, filename scripts/bower_components/leaflet/dist/images/marker-shadow.png
encoding None
filetype src, filename scripts/bower_components/font-awesome/fonts/fontawesome-webfont.woff2
encoding None

Then it errors at https://github.com/jasmine/jasmine-py/blob/master/jasmine/standalone.py#L70 when running xvfb-run jasmine-ci --browser firefox.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1358, in communicate
    req.respond()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/wsgiserver/wsgiserver2.py", line 873, in respond
    self.server.gateway(self).respond()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/wsgiserver/wsgiserver2.py", line 2272, in respond
    response = self.req.server.wsgi_app(self.env, self.start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/jasmine/standalone.py", line 38, in serve
    contents = self._decode_raw(raw_contents)
  File "/usr/local/lib/python2.7/dist-packages/jasmine/standalone.py", line 70, in _decode_raw
    contents = raw_contents.decode(encoding)
TypeError: decode() argument 1 must be string, not None
TypeError('decode() argument 1 must be string, not None',)
TypeError('decode() argument 1 must be string, not None',)

It's possible that I'm missing a required configuration for jasmine-py or jasmine.yml? Or maybe it's a bug in jasmine-py. Thanks in advance for any insight you have.

init command fails with TypeError

I see that issue #48 was already raised about this and that a commit was made to fix it. I will use that fix. Now I'll see if I can close this issue.

After installing jasmine and trying to run init, I am getting this error:
(FACT) F:\HEAT\heat\cortex>jasmine init
Traceback (most recent call last):
File "c:\users\jblack\appdata\local\continuum\anaconda3\envs\fact\lib\runpy.py", line 193, in
_run_module_as_main
"main", mod_spec)
File "c:\users\jblack\appdata\local\continuum\anaconda3\envs\fact\lib\runpy.py", line 85, in
_run_code
exec(code, run_globals)
File "C:\Users\jblack\AppData\Local\Continuum\anaconda3\envs\FACT\Scripts\jasmine.exe_main
_.py", line 9, in
File "c:\users\jblack\appdata\local\continuum\anaconda3\envs\fact\lib\site-packages\jasmine\e
ntry_points.py", line 15, in begin
cmd.run(sys.argv[1:])
File "c:\users\jblack\appdata\local\continuum\anaconda3\envs\fact\lib\site-packages\jasmine\e
ntry_points.py", line 64, in run
args.func(args)
TypeError: init() takes 1 positional argument but 2 were given

This is on Windows 10
I have Python 3.6 in a conda environment. Is that the problem? Do you only support 3.5?

support selenium 3

Currently requirements.txt requires selenium < 3. Selenium 3.0.0b2 is the current version on pypi and contains important fixes, but can't be installed in my projects yet, because of the conflict with jasmine.

Build fails with Werkzeug-0.11.11

I am using jasmine-py to run build on Travis-CI and the build fails as jasmine-py require version Werkzeug==0.11.1. Will I need to explicitly require this version in my project (this is a flask project)?

The command "python featreq_tests.py" exited with 0.
0.09s$ jasmine-ci
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.7.9/bin/jasmine-ci", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 614, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 627, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Werkzeug==0.11.1
The command "jasmine-ci" exited with 1.

Thanks

Support for cross domain vendor scripts

I would like to propose the support for cross-domain vendor scripts.

My project requires many dependancies such as jQuery, Ember, Bootstrap etc. I would prefer to have the javascript files not in my project and hosted on a cdn.

Thanks

Unexpected query string parameters: random

Hi,

When I click on the 'run tests in random order' jasmine option, I get this error from CherryPy:

Unexpected query string parameters: random

Traceback (most recent call last):
  File "/Users/gdelabachelerie/Documents/dev/gcteam/.venv/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/Users/gdelabachelerie/Documents/dev/gcteam/.venv/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/Users/gdelabachelerie/Documents/dev/gcteam/.venv/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 66, in __call__
    raise sys.exc_info()[1]
HTTPError: (404, 'Unexpected query string parameters: random')

Static Files not encoded in OS/locale default crash Standalone Flask App

On a windows box with CP-1252 as the default character set, I can't run tests against my code (angular 1.4.1 installed from bower) because the the angular.js file is encoded in UTF-8 and apparently contains some non-latin characters somewhere (simple workaround is to use the minified version in my src_files).

I think a reasonable solution would be to try to check the file encoding first (chardet or something https://pypi.python.org/pypi/chardet), before reading the contents out.

This guy is the problem

https://github.com/jasmine/jasmine-py/blob/master/jasmine/standalone.py#L36

jasmine 3.0+ doesn't work

For some reason, when I try to run jasmine ci on a simple test spec I get

[24/Jul/2018:17:11:11] ENGINE Bus STARTING
[24/Jul/2018:17:11:11] ENGINE Started monitor thread 'Autoreloader'.
[24/Jul/2018:17:11:11] ENGINE Serving on http://127.0.0.1:63941
[24/Jul/2018:17:11:11] ENGINE Bus STARTED
[24/Jul/2018:17:11:24] ENGINE Bus STOPPING
[24/Jul/2018:17:11:24] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 63941)) shut down
[24/Jul/2018:17:11:24] ENGINE Stopped thread 'Autoreloader'.
[24/Jul/2018:17:11:24] ENGINE Bus STOPPED
usage: jasmine [-h] {server,ci,init} ...

Jasmine command line

positional arguments:
  {server,ci,init}  commands
    server          Jasmine server
    ci              Jasmine CI
    init            initialize Jasmine

optional arguments:
  -h, --help        show this help message and exit
c:\python27\lib\site-packages\cherrypy\process\wspbus.py:258: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STOPPED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
  'main thread exits.' % self.state, RuntimeWarning)
[24/Jul/2018:17:11:24] ENGINE Bus STOPPING
[24/Jul/2018:17:11:24] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 63941)) already shut down
[24/Jul/2018:17:11:24] ENGINE No thread running for None.
[24/Jul/2018:17:11:24] ENGINE Bus STOPPED
[24/Jul/2018:17:11:24] ENGINE Bus EXITING
[24/Jul/2018:17:11:24] ENGINE Bus EXITED

Notice the jasmine help in the middle. The same happens regardless of the browser (ie, firefox, phatomjs) or OS (windows, Linux). If I install jasmine 2.9 or 2.99, then it runs test specs as it should.
Not sure what's wrong and where to look. Don't see anything suspicious in the logs.

Simple jasmine.yml errors not handled well

Typing

src_files: 'javascripts/counter.js'

instead of

src_files:
 - 'javascripts/counter.js'

Results in config#_glob_filelist getting a string instead of an array, which results in crazytown.

<script src="__src__/../../../../.." type="text/javascript"></script>
<script src="__src__/." type="text/javascript"></script>  

pypi jasmine package fails to install "ValueError: bad marshal data (unknown type code)"

When I add the jasmine pypi package as a dependency in a python package I'm working on, by adding 'jasmine' to the install_requires list in setup.py, I get the long backtrace below when running this on OSX, with python 2.7.10 installed under homebrew.

The error only occurs when trying to install the jasmine package as a dependency when running "python setup.py". "pip install jasmine" works just fine.

FWIW, the install_requires list looks as follows:
install_requires=['WTForms',
'Flask-WTF',
'Flask-RESTful',
'SQLAlchemy',
'Flask',
'jasmine'],

$ python ../lnt/setup.py develop
....
Installed /Users/kribey01/dev/llvm.org/lnt
Processing dependencies for LNT==0.4.1.dev0
Searching for jasmine
Reading https://pypi.python.org/simple/jasmine/
Best match: jasmine 2.4.0
Downloading https://pypi.python.org/packages/b0/37/91d46bd39e0fc111c48729e1eb57a728554f7073097dae9623f899c7b0e6/jasmine-2.4.0.tar.gz#md5=810c1f22fc2ce70729bc76ef1caa4e10
Processing jasmine-2.4.0.tar.gz
Writing /var/folders/th/cnt0054d153g3xf5rt87856x_1kq80/T/easy_install-mrtBCH/jasmine-2.4.0/setup.cfg
Running jasmine-2.4.0/setup.py -q bdist_egg --dist-dir /var/folders/th/cnt0054d153g3xf5rt87856x_1kq80/T/easy_install-mrtBCH/jasmine-2.4.0/egg-dist-tmp-RSqbPL
warning: no files found matching '*.py' under directory '.'
zip_safe flag not set; analyzing archive contents...
Traceback (most recent call last):
File "../lnt/setup.py", line 113, in
ext_modules = [cPerf],
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
....
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1070, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1056, in run_setup
run_setup(setup_script, args)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 240, in run_setup
raise
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in exit
self.gen.throw(type, value, traceback)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 164, in save_modules
saved_exc.resume()
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 139, in resume
compat.reraise(type, exc, self._tb)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 152, in save_modules
yield saved
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 193, in setup_context
yield
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 237, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 267, in run
return func()
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 236, in runner
_execfile(setup_script, ns)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/var/folders/th/cnt0054d153g3xf5rt87856x_1kq80/T/easy_install-pVipdH/jasmine-2.4.0/setup.py", line 51, in

File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 208, in run
os.path.join(archive_root, 'EGG-INFO'), self.zip_safe()
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 244, in zip_safe
return analyze_egg(self.bdist_dir, self.stubs)
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 354, in analyze_egg
safe = scan_module(egg_dir, base, name, stubs) and safe
File "/Users/kribey01/dev/llvm.org/lnt-test-runs/venv-lnt-testjasmin/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 391, in scan_module
code = marshal.load(f)
ValueError: bad marshal data (unknown type code)

No MySQL support MySQL support does not seem to be installed on this server

Hello, I am trying to implement JASMINE on a linux server (ubuntu), however it presents these messages in its web panel, after performing the settings. And php-mysql is already installed, but the message still persists.

"No MySQL support MySQL support does not seem to be installed on this server
Check that the MySQL support for PHP is installed: It is usually a package called something like "php-mysql" on GNU/Linux distribs.Do not forget to restart your web server if needed."

support writing junit-xml from jasmine-ci

Hi there,

I would like to run jasmine tests on a build server, but it seems there is no way to do this while getting output in the unit-xml format (that virtually all build servers can swallow).

Some solutions I would consider good:

  • have a switch to deliver junit-xml instead of the current output.
  • have some support for native junit-xml reporters in the configuration.yml file (e.g. via https://github.com/larrymyers/jasmine-reporters)
  • have a switch that allows customizing the boot.js file to allow us to do this ourselves

Django embedded runner broken

AttributeError at /jasmine
'Settings' object has no attribute 'PROJECT_PATH'
Request Method: GET
Request URL:    http://django-untrained.dev:5000/jasmine
Django Version: 1.6.5
Exception Type: AttributeError
Exception Value:    
'Settings' object has no attribute 'PROJECT_PATH'
Exception Location: /Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages/django/conf/__init__.py in __getattr__, line 55
Python Executable:  /Users/pivotal/.virtualenvs/django_untrained/bin/python2.7
Python Version: 2.7.8
Python Path:    
['/Users/pivotal/workspace/django_untrained',
 '/Users/pivotal/.virtualenvs/django_untrained/bin',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python27.zip',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/plat-darwin',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/plat-mac',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/lib-tk',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/lib-old',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/lib-dynload',
 '/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/pivotal/.virtualenvs/django_untrained/lib/python2.7/site-packages']

Also, Django has no asset pipeline by default.

jasmine-ci doesn't execute tests

I'm having trouble to execute jasmine-ci, using Python 3.5.1.

Running jasmine-ci --browser phantomjs it doesn't execute my test suite , returning 0 specs, 0 failed; at the point that running it on browser using jasmine command shows me 21 specs, 0 failures.

I tried to find this issue and can't find any other with this trouble.

chatdet fixed dependency

Currently jasmine-py has a fixed dependency of chatdet library at 2.3 version. I think it's not needed and this creates conflict with recent versions of packages like requests that require chatdet >=3.0.2.

Proposed fix (in requirements.txt):

-chardet==2.3
+chardet

Sorry I don't have now enough time to make the PR.

Increase number of threads / request_queue_size for CherryPy Server

The defaults of CherryPy WSGI Server supports only 50 simultaneous file transfers (10 threads x 5 request_queue_size). These two parameters should probably be tweaked.

This leads to failures dependent on the machine disk. For example, my project YACS works on an SSD macbook pro, but then fails on TravisCI because a handful of javascript files fail to load. It makes 74 requests (besides the initial http request).

Ideally, the request_queue_size should probably be bumped significantly. Libraries like gunicorn run with a backlog of 2048.

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.