Skip to content

Commit 7d20476

Browse files
tharun571vgvassilev
authored andcommitted
Add testing frameworks for notebooks, update documentation
1 parent 4745f72 commit 7d20476

File tree

5 files changed

+697
-4
lines changed

5 files changed

+697
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
shell: bash -l {0}
140140
run: |
141141
cd test
142-
pytest -sv . --reruns 5
142+
pytest -sv .
143143
144144
- name: Python tests Windows Systems
145145
if: ${{ runner.os == 'windows' }}

docs/source/debug.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ These steps are performed using the GNU Debugger (GDB), so ensure it is installe
88

99
.. code-block:: bash
1010
11+
cd build
1112
cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib ..
1213
1314
In the same folder, run the command and copy the JSON displayed in the terminal.
@@ -34,5 +35,5 @@ Testing
3435

3536
The source code for the c++ tests is located in `test/test_interpreter.cpp`. The source code for the python tests is located in `test/test_xcpp_kernel.py`.
3637
Write the necessary tests and build the project as described in the repository's README or contributing guidelines.
37-
Then, execute `build/test/test_xeus_cpp` from the top level directory to verify if the c++ tests were successful,
38-
and `pytest -sv build/test/test_xcpp_kernel.py` to execute the python tests.
38+
Then, execute `build/test/test_xeus_cpp` from the top level directory to verify if the c++ tests were successful.
39+
and in the test directory run `pytest -sv build/test/test_xcpp_kernel.py` to execute the python tests.

environment-dev.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ dependencies:
1717
# Test dependencies
1818
- pytest
1919
- jupyter_kernel_test>=0.5,<0.6
20+
- papermill
21+
- nbformat
2022
- nbval
2123
- pytest-rerunfailures
2224
- doctest

0 commit comments

Comments
 (0)