Commit Graph

96 Commits

Author SHA1 Message Date
Sylvain Corlay
1a85d7d24d support case where no server is started 2015-02-07 18:58:39 -05: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
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
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
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
1a4b795870 Use Draft4 JSON Schema for both v3 and v4
no longer need jsonpointer
2014-10-08 12:33:31 -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
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
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
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
Konrad Hinsen
4058786dcd Print a warning when iptest is run from the IPython source directory 2014-02-11 19:15:28 +01:00