diff --git a/docs/source/debug.rst b/docs/source/debug.rst index 04776e29..39ec291b 100644 --- a/docs/source/debug.rst +++ b/docs/source/debug.rst @@ -8,6 +8,7 @@ These steps are performed using the GNU Debugger (GDB), so ensure it is installe .. code-block:: bash + cd build cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib .. In the same folder, run the command and copy the JSON displayed in the terminal. @@ -34,5 +35,5 @@ Testing 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`. Write the necessary tests and build the project as described in the repository's README or contributing guidelines. -Then, execute `build/test/test_xeus_cpp` from the top level directory to verify if the c++ tests were successful, -and `pytest -sv build/test/test_xcpp_kernel.py` to execute the python tests. \ No newline at end of file +Then, execute `build/test/test_xeus_cpp` from the top level directory to verify if the c++ tests were successful. +and in the test directory run `pytest -sv build/test/test_xcpp_kernel.py` to execute the python tests. \ No newline at end of file diff --git a/environment-dev.yml b/environment-dev.yml index 1fa77ce8..44d41f79 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -18,6 +18,8 @@ dependencies: # Test dependencies - pytest - jupyter_kernel_test>=0.5,<0.6 + - papermill + - nbformat - nbval - pytest-rerunfailures - doctest \ No newline at end of file diff --git a/test/Notebooks/Untitled.ipynb b/test/Notebooks/Untitled.ipynb new file mode 100644 index 00000000..4a68a5fa --- /dev/null +++ b/test/Notebooks/Untitled.ipynb @@ -0,0 +1,66 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "5b32725b-d7df-4756-b179-68ed3c429d3f", + "metadata": {}, + "outputs": [], + "source": [ + "#include " + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "cbf10f24-99a1-434d-b71a-4f8920e5ebb6", + "metadata": {}, + "outputs": [], + "source": [ + "int a = 12;" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "f269cf5a-b365-4a1a-9a79-44f2222e6829", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "12" + ] + } + ], + "source": [ + "std::cout<