Skip to content

Commit 6d7673c

Browse files
committed
Added coverage
1 parent 3edec0a commit 6d7673c

File tree

4 files changed

+880
-32
lines changed

4 files changed

+880
-32
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# MATLAB-ci
22
[![Build Status](https://travis-ci.com/cortex-lab/matlab-ci.svg?branch=master)](https://travis-ci.com/cortex-lab/matlab-ci)
3+
[![Coverage](https://img.shields.io/badge/coverage-72.35-yellowgreen)](https://img.shields.io/badge/coverage-72.35-yellowgreen)
34

45
A small set of modules written in Node.js for running automated tests of MATLAB code in response to GitHub events. Also submits code coverage to the Coveralls API.
56

@@ -59,9 +60,18 @@ chmod u+x ./prep_env.BAT
5960
```
6061

6162
## Running the tests
62-
63+
Before running the tests ensure the dev dependencies are installed.
64+
On Windows:
65+
```
66+
set "DOTENV_CONFIG_PATH=./test/fixtures/.env.test" & npm test
67+
```
68+
On Linux:
69+
```
70+
DOTENV_CONFIG_PATH=./test/fixtures/.env.test & npm test
71+
```
72+
Coverage:
6373
```
64-
mocha ./test
74+
DOTENV_CONFIG_PATH=./test/fixtures/.env.test & npm run coverage
6575
```
6676

6777
## Deployment

0 commit comments

Comments
 (0)