Commit graph

46 commits

Author SHA1 Message Date
dickmao
11c2245c41 Asynchronize all server communication
Use deferred and callbacks instead of `:sync t` for tkf requests which
is known to have issues.  Query server attributes once on
notebooklist-open to avoid sequencing issue #176 (but allow Resync).
Under curl backend, a second request for the same "key" as a pending
request will abort the latter, which has resulted in a clobbered
curl-cookie-jar file, so merely warn and don't abort.

Fix #176
2018-10-07 00:40:48 -04:00
dickmao
ec28cbe708 revive tkf tests
`make test-unit`
`make test-int` (formerly `cask exec ert-runner`)
An intermittent travis-melpa issue is solved by gonewest818.
2018-09-27 00:52:00 -04:00
John Miller
7a52ebca35 Make content-api request synchronous during testing.
Testing still seems to be broken, but maybe will make a difference on travis.
2018-02-26 06:18:53 -06:00
Benda Xu
5ec09896a0 tools/testein.py: no retry is needed.
Our test is reproducible now.
2017-10-21 22:28:17 +09:00
John Miller
39f5d329f1 Functional tests start jupyter using ein:jupyter-server-start
This reduces some of the complexity in testein.py, but unfortunately running
tests is still unreliable. Running batchwise tests don't work at all in Windows,
and running from inside emacs tests often need to be run multiple times before
they pass.

The worst offender is the delete notebook test, which will pass on usually only
1 out of 3 tries.

Testing seems to have revealed a couple bugs, so win??
2017-04-07 08:18:41 -05:00
John Miller
ed633b1fd7 Functional tests that handle redirects. 2017-02-14 21:01:25 -06:00
John Miller
4bc3acf001 Desperate attempts to fix default coding when running testein. 2016-12-18 19:17:13 -06:00
John Miller
ea0c3e5433 testein.py: Stop emacs from launching interactively? 2016-12-18 18:17:22 -06:00
John Miller
fb31f0dec8 testein.py: Disable token authentication
I hope.
2016-12-18 18:11:33 -06:00
John Miller
abeb37e675 Testein and cask working together, maybe. 2016-12-18 16:21:03 -06:00
John Miller
cf70c7ecd9 Cleaning up testing
Trying to keep up with jupyter..
2016-09-30 13:24:28 -05:00
John Miller
6ea5c255aa Fix command template for windows
Windows did not like all those newlines. Less readable in the code but
at least it works.
2016-09-30 09:59:19 -05:00
Egon Kidmose
374dabece8 fix Typerror (str.strip got unicode, expected str) 2015-04-01 13:53:18 +02:00
millejoh
84f478aed6 Improving ipython 3 support in testein.py. Lots of fixes for notebook tests to
properly test nbformat 3 notebooks.
2015-02-02 13:20:24 -06:00
John Miller
849adda708 Support for nbformat v4
BEWARE! This is a large commit and the code here is still mostly
untested. Back up your notebooks before giving this changeset a try with
the current IPython-dev version.

Given that, ein is now able to open and save basic notebooks saved in
nbformat 4. Still haven't tested more complex notebooks with embedded
images.
2014-11-07 19:28:09 -06:00
John Miller
c963d236c7 Documentation update and travis cleanup
Progressing back towards having automated testing via travis. Updated
contact info for ein:dev-bug-report-template and updated requirements in
README.rst.
2014-11-03 16:34:14 -06:00
Jessica B. Hamrick
b7a4692f69 Don't use GNU arguments for ps
Fixes #119
2013-06-28 15:41:36 -07:00
Takafumi Arakaki
e24078b03b Add request as dependency 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
ba82de1bac Skip known failures by testein.py
fixes #74
2012-12-18 02:14:54 +01:00
Takafumi Arakaki
d1e710084c Better report for when test server died 2012-12-18 00:56:55 +01:00
Takafumi Arakaki
05c6977433 Add --func-test-max-retries 2012-10-07 09:53:32 +02:00
Takafumi Arakaki
3eb69074dc Refactor testein.py: put dry_run logic in the base class 2012-10-07 09:35:25 +02:00
Takafumi Arakaki
5eece48c4e Fix tools/testein.py --dry-run 2012-09-28 02:19:31 +02:00
Takafumi Arakaki
3ce9ef9dd4 Do not clutter terminal when showing traceback 2012-09-18 23:55:36 +02:00
Takafumi Arakaki
79a30012c5 Show log when test fails 2012-09-18 23:55:31 +02:00
Takafumi Arakaki
410c6eb8ee Simplify TestRunner.report 2012-09-18 23:55:26 +02:00
Takafumi Arakaki
a2def2f47f Fix kill_subprocesses 2012-09-18 18:12:16 +02:00
Takafumi Arakaki
69ec2c14ac Do not hard code log file path in Makefile 2012-09-18 17:39:24 +02:00
Takafumi Arakaki
cd486f0c5b Fix failing Travis CI tests 2012-09-18 17:18:17 +02:00
Takafumi Arakaki
6bad835612 Refactor testein.py: add BaseRunner 2012-09-18 16:40:36 +02:00
Takafumi Arakaki
d010c19041 Use log/ to store server log 2012-09-18 16:26:02 +02:00
Takafumi Arakaki
94080b288c Shutdown IPython >=0.13 properly 2012-09-18 16:17:43 +02:00
Takafumi Arakaki
ac0d07e68e Kill IPython server properly 2012-09-18 16:17:42 +02:00
Takafumi Arakaki
164ffe3700 Use ServerRunner to run server for func-test.el 2012-09-18 16:17:42 +02:00
Takafumi Arakaki
201ef1f17e Clear notebook files in ServerRunner 2012-09-18 16:17:42 +02:00
Takafumi Arakaki
22b8deeafb Add ServerRunner in testein.py 2012-09-18 16:17:42 +02:00
Takafumi Arakaki
7b9d3e6f7d Do not pass around base_command as argument 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
dbe1a92dc2 Do not show_sys_info in interactive mode 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
9658cb38f2 Remove useless top level run function 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
a870e0896b Import subprocess at top level 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
f1746a763f Do not start subprocess while constructing command 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
5438b47281 Fix failing show_sys_info when testing func-test.el 2012-09-18 00:36:25 +02:00
Takafumi Arakaki
db4260e6e2 Better EIN_ROOT 2012-09-14 14:41:22 +02:00
Takafumi Arakaki
908984d60c Put log files from testein.py under log/ 2012-09-13 18:38:01 +02:00
Takafumi Arakaki
8bf54bd777 Fix testein.py path 2012-09-13 15:56:33 +02:00
Takafumi Arakaki
3607bb868b git mv testein.py tools/ 2012-09-13 15:29:12 +02:00
Renamed from testein.py (Browse further)