Skip to content

Commit

Permalink
Update notebook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tharun571 committed Jun 10, 2024
1 parent 2b93b96 commit 1af1ae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/debug.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
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.
2 changes: 2 additions & 0 deletions test/test_xcpp_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class XCppTests(jupyter_kernel_test.KernelTests):
}
]

#Helper function to execute the notebooks
def execute_notebook(inp, out):

# Execute the notebook
Expand Down Expand Up @@ -162,6 +163,7 @@ def execute_notebook(inp, out):

return check

# Tests for Notebooks
class XCppNotebookTests(unittest.TestCase):

def test_simple_notebook(self):
Expand Down

0 comments on commit 1af1ae5

Please sign in to comment.