Commit Graph

315 Commits

Author SHA1 Message Date
Sylvain Corlay
1a85d7d24d support case where no server is started 2015-02-07 18:58:39 -05:00
Min RK
809e79b6e4 bump pyzmq version dependency to 13
pyzmq < 13 doesn't work with tornado >= 3, which we also require.

This results in clearer error messages when pyzmq is too old.
2015-02-05 14:16:48 -08:00
Min RK
cc64652f56 use \0 instead of 'wake up' to finish output
since we are now seeing the captured output,
we don't need `wake up` at the end of all of our test outputs.
2015-02-02 17:14:24 -08:00
Thomas Kluyver
1c0c5e5b0f Restore the ability to run all js tests with iptest js
E.g. for slimer
2015-01-12 15:22:23 -08:00
Jessica B. Hamrick
44dddf52d2 Make sure tests aren't included twice as js and python 2015-01-09 13:16:06 -08:00
Matthias Bussonnier
dc9efdfc98 Split js tests in N subgroups.
js test are the longer ~8 minutes vs ~3 for Python, and fails the more often.
Hopefully this will speedup the build and have less test relaunched when we
have a random faillure.  Splitting should make the js test a bit faster
2015-01-08 16:49:49 +01:00
Matthias Bussonnier
c3c2c0dd08 also print traceback 2014-12-26 11:53:22 +01:00
Matthias Bussonnier
80726e438b Print that generating coverage report failed when runnign js test only 2014-12-25 17:16:55 +01:00
Matthias Bussonnier
df6744d85d enable test coverage on coveralls 2014-12-14 12:38:33 +01:00
Jeroen Demeyer
aff93c3519 gh-7044: set TMPDIR to workingdir in tests 2014-12-05 15:20:51 +01:00
Jeroen Demeyer
d131650e25 gh-7053: check for OSError during rehashx() 2014-12-02 11:59:59 +01:00
Min RK
19bcc5fed9 bump minimum tornado version to 4.0
remove various websocket workaround for tornado 3
2014-11-07 22:39:25 -08:00
Min RK
f8d59bcd9e forward-port draft76 websockets
from tornado-3.2.2

only enabled during testing with phantomjs
2014-11-07 22:39:24 -08:00
Min RK
c0f64529bf allow js tests to run with tornado 4 and phantomjs 2014-11-07 22:19:41 -08:00
Min RK
c88bd5025a distinguish capture_output from buffer_output
allow capturing output without silencing it,
which is useful for slimerjs,
which requires looking at output to determine failure.
2014-11-04 15:59:27 -08:00
Thomas Kluyver
7ee896861c Don't load html.terminal for tests if terminado not installed 2014-10-25 17:14:40 -07:00
Jonathan Frederic
157e51f882 Last review comments? 2014-10-21 14:54:32 -07:00
Jonathan Frederic
d33d55bcd8 Review comments 2014-10-21 13:46:13 -07:00
Jonathan Frederic
c3b1bf795e Add --url option to iptest 2014-10-20 20:29:01 -07:00
Thomas Kluyver
fddccc08de Merge pull request #6711 from minrk/invoke
use invoke instead of fabric
2014-10-16 09:19:41 -07:00
MinRK
920d49593c refuse to run js tests with phantom + tornado 4
websocket connections fail with 426 because phantomjs implements a super old draft of webosockets that recent tornado doesn't support

This refused to run in that situation with an informative message.
2014-10-15 17:38:59 -07:00
MinRK
41cfd4f5cf use invoke instead of fabric
it's the descendant of the part of fabric we actually use,
it doesn't have complex compiled dependencies like fabric,
and it works on Python 3.
2014-10-15 16:53:07 -07:00
Thomas Kluyver
db179403f8 Merge pull request #6510 from Carreau/removecython
Remove cython extension and examples.
2014-10-11 11:27:25 -07:00
MinRK
1a4b795870 Use Draft4 JSON Schema for both v3 and v4
no longer need jsonpointer
2014-10-08 12:33:31 -07:00
MinRK
91c7d00f95 use jsonschema refs, no need for jsonpointer 2014-10-08 12:33:31 -07:00
Matthias Bussonnier
fe99c27175 remove cython extension.
Now in cython package itself, as stable.
2014-09-21 11:29:47 +02:00
Thomas Kluyver
347e16aa22 No need to check for rpy2 in test machinery 2014-08-11 10:06:31 -07:00
Paul Ivanov
6162c99028 nbconvert requires mistune
You get a cryptic error message from iptest if mistune is not installed.

Test group: nbconvert
E
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'nbconvert')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 403, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/util.py", line 321, in resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'nbconvert'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1
2014-08-06 15:37:29 -07:00
Jason Grout
35c3095da0 Explicitly set the current working directory when running tests
Because of the profile directory searching algorithm, if the current
working directory has a directory named 'profile_default', that will
be used instead of the temporary profile directory the tests expect.
2014-07-30 14:35:10 +00:00
John Stowers
d025cb6176 exclude gtk3 gui modules from tests 2014-07-26 20:38:15 +02:00
Thomas Kluyver
19f0362bb5 Add Xunit support for JS tests
Casper supports producing xunit output. WIth this, our --xunit flag gets
passed down to the JS test process. This should give nicer output for
JS test failures on Jenkins.
2014-06-11 09:30:27 -07:00
Thomas Kluyver
d39cf0e927 Add jsonschema & jsonpointer requirements for JS tests 2014-06-10 12:38:46 -07:00
Thomas Kluyver
38d1f3dbc5 nbformat also requires jsonpointer 2014-06-10 12:37:45 -07:00
Thomas Kluyver
e0e91460c8 Require jsonschema for nbformat, html and nbconvert tests 2014-06-10 12:11:16 -07:00
Thomas Kluyver
37e4ef83b1 Move strip_ansi function to utils 2014-06-10 12:05:46 -07:00
Thomas Kluyver
76babb623a Better integrate output from slimerjs tests 2014-06-06 13:20:22 -07:00
Jonathan Frederic
cebebb35d5 Re-add print 2014-06-06 11:43:29 -07:00
jon
19cf386a20 Address comments 2014-06-06 11:12:46 -07:00
Jonathan Frederic
1c228ca0ab Rebase fix(es) 2014-06-04 13:19:52 -07:00
Jonathan Frederic
0d78fde131 Fixed spaces in ipcontroller 2014-06-04 13:15:55 -07:00
Jonathan Frederic
a5a795a884 Added slimer support for py3.x 2014-06-04 13:12:20 -07:00
Jonathan Frederic
99a0013525 Adde slimerjs support to JS tests
This commit contains 16 more, squashed commits:

Added slimerjs flag

Fixed some bugs with flag code

Figured out how to add arg correctly

Cleanup

Improvements to the test framework for FF

Log to see if slimmer is actually running

Added print in controller to debug

Added full logging to casperjs

Remove the special logging logic since it was caussing a failure

remove notebook.dirty = false line in favor of
overwritting onbeforeunload.

Capture output for slimerjs

Fixed iptestcontroller rebase issues

Fixed rebase issues.

Wait for notebook to load completely before testing

Fixed stdout capture for slimerjs tests.

Clean-up comments in util.js

Added slimerjs to Travis

Fixed indent .travis.yml

Comment out slimerjslauncher env var.

Removed zmq flag which doesn't work there anyways,
it was added by me in a recent commit

Fixed travis yaml,

broken because of rebase
2014-06-04 12:10:29 -07:00
MinRK
5c23ad48d7 remove redundant js_enabled variable
it’s only False if the js_testgroups list is empty
2014-05-16 15:40:22 -07:00
MinRK
70c927e97b fix undefined js_enabled on iptest —all 2014-05-16 15:29:43 -07:00
Thomas Kluyver
e26140c435 Handle failure to read JSON waiting for server start
If the test controller tries to read the file while the server it has
started is in the middle of writing it, it gets invalid JSON and fails.

This just loops again until we have valid JSON to read.
2014-05-08 14:41:21 -07:00
Paul Ivanov
79217e7e63 be explicit about skipping js tests
this way those running the test suite can discover that there are a
bunch of js test groups. New output of `iptest -j` looks like this

```
Test group: kernel.inprocess -------------------------------------- OK
Test group: config ------------------------------------------------ OK
Test group: extensions -------------------------------------------- OK
Test group: lib --------------------------------------------------- OK
Test group: testing ----------------------------------------------- OK
Test group: core -------------------------------------------------- OK
Test group: terminal ---------------------------------------------- OK
Test group: utils ------------------------------------------------- OK
Test group: kernel ------------------------------------------------ OK
Test group: nbformat ---------------------------------------------- OK
Test group: qt ---------------------------------------------------- OK
Test group: autoreload -------------------------------------------- OK
Test group: html -------------------------------------------------- OK
Test group: nbconvert --------------------------------------------- OK
Test group: parallel ----------------------------------------- NOT RUN
Test group: js/base ------------------------------------------ NOT RUN
Test group: js/notebook -------------------------------------- NOT RUN
Test group: js/widgets --------------------------------------- NOT RUN
Test group: js/tree ------------------------------------------ NOT RUN
Test group: js/casperjs -------------------------------------- NOT RUN
Test group: js/services -------------------------------------- NOT RUN
```
2014-05-08 12:44:13 -07:00
MinRK
af2d60a393 Popen.wait(timeout) is new in Python 3.3 2014-04-30 17:05:03 -07:00
MinRK
b3c46ab2b4 Don't hang tests if notebook server fails to terminate. 2014-04-30 15:54:29 -07:00
MinRK
e934687fed don't test js test groups by default
since they are huge and slow, treat the like parallel (also huge and slow)
2014-04-27 16:46:43 -07:00
Thomas Kluyver
c6de836564 Remove the octavemagic extension.
It is part of oct2py, so we can stop testing and documenting it now.
2014-04-02 10:42:43 -07:00