|
1 | 1 | # robotframework-jupyterlibrary |
2 | | -> A Robot Framework library for testing Jupyter end-user applications and extensions |
| 2 | +> A [Robot Framework][] library for automating (testing of) [Jupyter][] end-user applications and extensions |
| 3 | +
|
| 4 | +[Robot Framework]: http://robotframework.org |
| 5 | +[Jupyter]: https://jupyter.org |
3 | 6 |
|
4 | 7 | [![binder-badge][]][binder] [![pipeline-badge]][pipeline] |
5 | 8 |
|
6 | | -> _TODO: rtd, pip, conda_ |
| 9 | +# Using |
| 10 | +Write `.robot` files that use `JupyterLibrary` keywords. |
| 11 | + |
| 12 | + *** Settings *** |
| 13 | + Library JupyterLibrary |
| 14 | + Suite Setup Wait for New Jupyter Server to be Ready |
| 15 | + Test Teardown Reset JupyterLab and Close |
| 16 | + Suite Teardown Terminate All Jupyter Servers |
| 17 | + |
| 18 | + *** Test Cases *** |
| 19 | + A Notebook in JupyterLab |
| 20 | + Open JupyterLab |
| 21 | + Launch a new JupyterLab Document |
| 22 | + Add and Run JupyterLab Code Cell |
| 23 | + Wait Until JupyterLab Kernel Is Idle |
| 24 | + Capture Page Screenshot |
| 25 | + |
| 26 | +See the [acceptance tests][] for examples. |
| 27 | + |
7 | 28 |
|
8 | 29 | # Installation |
| 30 | +> _TODO: release on pypi, conda-forge_ |
9 | 31 |
|
10 | 32 | ## Development Installation |
| 33 | + |
11 | 34 | - get Firefox |
12 | | -- get Miniconda |
13 | | -- update and activate |
14 | | -```bash |
15 | | -conda env update |
16 | | -conda activate robotframework-jupyterlibrary |
17 | | -``` |
18 | | -- then |
19 | | -```bash |
20 | | -pip install -e . --no-deps --ignore-installed |
21 | | -``` |
22 | | -- run the tests |
23 | | -``` |
24 | | -python -m scripts.atest |
25 | | -``` |
| 35 | + - Chrome works, too, but more fickle |
| 36 | +- get [Miniconda3][] (as in Python 3.6+) |
| 37 | +- clone this repo... |
26 | 38 |
|
27 | | -# Using |
28 | | -> _TODO: Figure out a documentation strategy that works with |
29 | | - janky-imported resources_ |
| 39 | + git clone https://github.com/bollwyvl/robotframework-jupyterlibrary |
| 40 | + cd robotframework-jupyterlibrary |
| 41 | + |
| 42 | +- update and activate... |
| 43 | + |
| 44 | + conda env update |
| 45 | + conda activate robotframework-jupyterlibrary |
| 46 | + |
| 47 | +- then... |
| 48 | + |
| 49 | + pip install -e . --no-deps --ignore-installed |
30 | 50 |
|
31 | | -Write `.robot` files that use `JupyterLibrary` keywords. See the |
32 | | -[acceptance tests](./atest/acceptance) for examples. |
| 51 | +- run the tests... |
33 | 52 |
|
| 53 | + python -m scripts.atest |
34 | 54 |
|
| 55 | +[acceptance tests]: https://github.com/bollwyvl/robotframework-jupyterlab |
| 56 | +[Miniconda3]: https://conda.io/miniconda.html |
35 | 57 | [binder-badge]: https://mybinder.org/badge_logo.svg |
36 | 58 | [binder]: https://mybinder.org/v2/gh/bollwyvl/robotframework-jupyterlibrary/master?urlpath=lab/tree/README.md |
37 | 59 | [pipeline-badge]: https://dev.azure.com/nickbollweg/nickbollweg/_apis/build/status/bollwyvl.robotframework-jupyterlibrary |
|
0 commit comments