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/test/test_xcpp_kernel.py b/test/test_xcpp_kernel.py index 9192a7b9..3e2100ac 100644 --- a/test/test_xcpp_kernel.py +++ b/test/test_xcpp_kernel.py @@ -133,6 +133,7 @@ class XCppTests(jupyter_kernel_test.KernelTests): } ] + #Helper function to execute the notebooks def execute_notebook(inp, out): # Execute the notebook @@ -162,6 +163,7 @@ def execute_notebook(inp, out): return check + # Tests for Notebooks class XCppNotebookTests(unittest.TestCase): def test_simple_notebook(self):