Commit Graph

294 Commits

Author SHA1 Message Date
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
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
Min RK
25b111d7cb Merge pull request #5339 from minrk/iptest-qt-js-wtf
Don't use fork to start the notebook in js tests
2014-03-24 15:52:49 -07:00
MinRK
191cc65631 halt stream capturer after server terminates 2014-03-24 12:49:55 -07:00
Thomas Kluyver
1b9bd741b4 Move configuration of Python test controllers into setup() 2014-03-24 12:21:35 -07:00
MinRK
4b15d4c36d don't launch js tests if the server didn't start 2014-03-20 15:13:05 -07:00
MinRK
a16acb246d html and js tests require sqlite3 (session manager) 2014-03-20 15:13:05 -07:00
MinRK
386b08634c Don't use fork to start the notebook in js tests
It can encounter a weird segfault on OS X with sqlite when Qt is present (?!)

The main reason to use the fork was to get the port number,
but this is easy now that notebooks write a server-info file.

Further advantage is that the symptom of a failed server start
is no longer silence and hanging tests, but an actual failure with the server's log output.
2014-03-20 15:13:01 -07:00
Thomas Kluyver
2620761202 Improve description of -j option to iptest 2014-03-20 13:36:24 -07:00
Thomas Kluyver
c861f58327 Shorten leftover references to 'IPython test group' 2014-03-20 13:33:27 -07:00
Thomas Kluyver
8c45772c3e Refactor generation of casperjs command 2014-03-10 17:01:35 -07:00
Thomas Kluyver
1cf91b4933 Refactor TestController API to allow it to display extra info.
Add a setup() method to be called when we know we're going to use a test
group, for creating temporary dirs etc., and a print_extra_info() method
to display extra information.
2014-03-10 16:45:08 -07:00
Thomas Kluyver
8170b58c3f Fix display of notebook directory path 2014-03-10 16:07:12 -07:00
Thomas Kluyver
cedc3bad9e Some gardening on iptest result reporting 2014-03-10 15:47:41 -07:00
MinRK
22486461f3 use ipc for notebook js tests
on linux only

This ought to prevent EADDRINUSE errors in the kernel.
2014-02-28 12:50:53 -08:00
Thomas Kluyver
f8fbd82864 Fix exclusion of tests directories from coverage reports 2014-02-27 17:39:48 -08:00
Min RK
41275b062a Merge pull request #5089 from rgbkrk/azure_out
Remove legacy azure nbmanager
2014-02-19 11:42:20 -08:00
Kyle Kelley
c9adc812bf Remove remaining refs to the Azure NB Manager 2014-02-12 14:18:04 -07:00
Konrad Hinsen
4058786dcd Print a warning when iptest is run from the IPython source directory 2014-02-11 19:15:28 +01:00
MinRK
f80e4dc72e don't create js test directories unless they are being used
just moves a setup block from `__init__` to `launch`
2014-02-09 13:35:29 -08:00
MinRK
7cb4321bfe test unicode path in dashboard_nav 2014-02-08 23:09:23 -08:00
Jonathan Frederic
60c035f874 Hardcode exception for __pycache___ 2014-02-08 11:19:27 -08:00
Jonathan Frederic
b5d465e3c7 removed casperjs dir 2014-02-07 21:17:05 -08:00