Skip to content

Commit e7c7624

Browse files
committed
fix markdown
1 parent 91e800f commit e7c7624

File tree

2 files changed

+39
-29
lines changed

2 files changed

+39
-29
lines changed

notebooks/README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# README
22

3-
1. Make sure that you have Octave installed.
4-
2. If you have Conda/Jupyter/pip installed, go to step 4.
5-
Check if Conda is installed properly by typing `conda list` into your terminal
6-
3. Download the [Anaconda Installer](https://www.anaconda.com/products/individual) and install it.
7-
If using miniconda, run `conda install jupyter` to download and install the Jupyter Notebook package.
8-
4. Install [Octave kernel](https://pypi.org/project/octave-kernel/):
9-
```
10-
pip install octave_kernel
11-
```
12-
5. Run `jupyter notebook` in your terminal. `Octave` should appear on the list
13-
for creating a new notebook.
3+
1. Make sure that you have Octave installed.
4+
5+
2. If you have Conda/Jupyter/pip installed, go to step 4. Check if Conda is
6+
installed properly by typing `conda list` into your terminal
7+
8+
3. Download the
9+
[Anaconda Installer](https://www.anaconda.com/products/individual) and
10+
install it. If using miniconda, run `conda install jupyter` to download and
11+
install the Jupyter Notebook package.
12+
13+
4. Install [Octave kernel](https://pypi.org/project/octave-kernel/):
14+
`pip install octave_kernel`
15+
16+
5. Run `jupyter notebook` in your terminal. `Octave` should appear on the list
17+
for creating a new notebook.

tests/README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
# how to run the tests
22

3-
- Install [MOxUnit for matlab and octave](https://github.com/MOxUnit/MOxUnit) to run the tests
4-
- Install [MOcov for matlab and octave](https://github.com/MOcov/MOcov) to get the code coverage
5-
- Make sure you are in the `tests` directory.
6-
- Run `moxunit_runtests` or `moxunit_runtests -verbose` to run the tests.
3+
- Install [MOxUnit for matlab and octave](https://github.com/MOxUnit/MOxUnit)
4+
to run the tests
5+
6+
- Install [MOcov for matlab and octave](https://github.com/MOcov/MOcov) to get
7+
the code coverage
8+
9+
- Make sure you are in the `tests` directory.
10+
11+
- Run `moxunit_runtests` or `moxunit_runtests -verbose` to run the tests.
712

813
This should tell you which tests pass or fail.
9-
14+
1015
## code coverage
1116

12-
The following command would give more info and will give you HTML output in a `coverage_html` folder
13-
showing you which lines of code is or is not checked by your test suite.
17+
The following command would give more info and will give you HTML output in a
18+
`coverage_html` folder showing you which lines of code is or is not checked by
19+
your test suite.
1420

15-
``` matlab
21+
```matlab
1622
success = moxunit_runtests(pwd, ... % the path where the tests are
1723
'-verbose', ...
1824
'-with_coverage', ...
1925
'-cover', fullfile(pwd, '..'), ... % the path of the code whose coverage we want to estimate
2026
'-cover_xml_file','coverage.xml', ...
2127
'-cover_html_dir','coverage_html');
2228
```
23-
This will return a clear underestimation of the code coverage as the the code in dependencies in the `lib` folder
24-
are also included in this report.
2529

26-
If you want to get a slightly more accurate estimate you should run the following.
30+
This will return a clear underestimation of the code coverage as the the code in
31+
dependencies in the `lib` folder are also included in this report.
32+
33+
If you want to get a slightly more accurate estimate you should run the
34+
following.
2735

28-
I have not been able to find a way to exclude certain files without breaking some tests.
36+
I have not been able to find a way to exclude certain files without breaking
37+
some tests.
2938

3039
```matlab
3140
coverage = mocov( ...
@@ -47,15 +56,13 @@ coverage = mocov( ...
4756
'-cover_html_dir','coverage_html')
4857
```
4958

50-
5159
## Adding more tests
5260

5361
You can use the following function template to write more tests.
5462

55-
5663
```matlab
5764
function test_suite = test_functionToTest()
58-
% This top function is necessary for mox unit to run tests.
65+
% This top function is necessary for mox unit to run tests.
5966
% DO NOT CHANGE IT except to adapt the name of the function.
6067
try % assignment of 'localfunctions' is necessary in Matlab >= 2016
6168
test_functions = localfunctions(); %#ok<*NASGU>
@@ -70,7 +77,7 @@ function test_functionToTestBasic()
7077
7178
7279
%% data to test against
73-
80+
7481
7582
%% test
7683
% assertTrue( );
@@ -85,7 +92,7 @@ function test_functionToTestUseCase1()
8592
8693
8794
%% data to test against
88-
95+
8996
9097
%% test
9198
% assertTrue( );
@@ -94,4 +101,3 @@ function test_functionToTestUseCase1()
94101
95102
end
96103
```
97-

0 commit comments

Comments
 (0)