Skip to content

Commit d815e9e

Browse files
committed
add doc on tests and remove old testing function
1 parent b6479f8 commit d815e9e

File tree

3 files changed

+35
-66
lines changed

3 files changed

+35
-66
lines changed

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
1+
# exclude mac file
22
*DS_Store
33

4+
# exclude matlab autosaves and octave workspace info
45
*.m~
56
*octave-workspace
67

78
# exclude content of logfiles folders
9+
output/**
810
*.tsv
911
*.mat
1012

11-
check_my_code_report.txt
13+
# exclude temp files from tests and coverage
14+
tests/coverage*
15+
tests/test_code_report.txt
1216
test_code_report.txt
1317

14-
output/**
18+
# exclude report from check_my_code
19+
check_my_code_report.txt
20+
21+
22+
23+

tests/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# how to run the tests
2+
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.
7+
8+
This should tell you which tests pass or fail.
9+
10+
The following command would give more info and will give you HTML output in a `coverage_html` folder
11+
showing you which lines of code is or is not checked by your test suite.
12+
13+
``` matlab
14+
success = moxunit_runtests(pwd, ... % the path where the tests are
15+
'-verbose', ...
16+
'-with_coverage', ...
17+
'-cover', fullfile(pwd, '..'), ... % the path of the code whose coverage we want to estimate
18+
'-cover_xml_file','coverage.xml', ...
19+
'-cover_html_dir','coverage_html');
20+
```
21+
22+
23+

tests/runTests.m

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)