Commit Graph

76 Commits

Author SHA1 Message Date
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
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
Paul Ivanov
55684d7c1e don't change name of section 2014-02-07 16:24:18 -08:00
Paul Ivanov
2c55a81efa use js/subfolder/test.js syntax now 2014-02-07 16:21:54 -08:00
Paul Ivanov
4ad7e35809 shorten the js section names 2014-02-07 16:21:22 -08:00
Paul Ivanov
04e0725ba9 fat fingers
don't laugh. it's a serious problem.
2014-02-07 15:24:51 -08:00
Paul Ivanov
4f49ed4008 allow testing individual js files
all casperjs/ subdirectories now treated as test categories
2014-02-07 15:22:20 -08:00
Paul Ivanov
ea242a7c23 make tests actually run 2014-02-07 14:43:37 -08:00
Jonathan Frederic
4984e0f2c9 Added notebook and widget test groups. 2014-02-07 10:09:47 -08:00
Brian E. Granger
977b164d8e Cleaning up JS tests controller. 2014-02-05 11:18:09 -08:00
Brian E. Granger
717f031e01 Adding dashboard navigation tests for dir browsing. 2014-02-04 15:53:28 -08:00
Thomas Kluyver
956fbde018 Prevent 'iptest IPython' from trying to run.
Closes gh-4006
2014-02-03 17:56:22 -08:00
Brian E. Granger
aa71651468 Fixing issues with js tests.
* Closing old pages to prevent fd leaks.
* Making sure kernels are killed to prevent fd leaks.
* Moving towards deleting old notebooks (this is not done, but
  this should be merged as is).
2014-01-31 10:42:23 -08:00
Thomas Kluyver
a0b60a24cd Option to spew subprocess streams during tests
This supersedes PR #4268.

Run the tests with '--subproc-streams show' to show output from
subprocesses (kernels, IPython.parallel components) in the terminal, or
with '--subproc-streams discard' to send it to /dev/null. By default (or
with '--subproc-streams capture') the output is piped, captured and
displayed only when tests fail. But in some situations, a test fails
because of an error which actually occurred earlier, so you have to see
all the output.
2013-12-13 12:11:14 -08:00
Thomas Kluyver
627c67ac9d Restore the ability to run tests from a function. 2013-12-03 12:33:32 -08:00
Thomas Kluyver
d729dfbbe2 Fix passing extra arguments to Python test controllers 2013-10-29 09:15:56 -07:00
Thomas Kluyver
81660c08ce Allow running Python tests on one section of the codebase 2013-10-29 09:15:56 -07:00
Thomas Kluyver
45faf9a949 Merge commit '37dadeb' (most of PR #4391)
Conflicts:
	IPython/testing/iptestcontroller.py
2013-10-23 14:00:14 -07:00