Skip to content

Commit 12f7003

Browse files
authored
Update README.md
1 parent c777d2e commit 12f7003

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ The virtual machines in this section are SECD-style and follow a description in
6363

6464
# Testing
6565

66+
For testing your Source programs, you need `node` and `yarn`.
67+
6668
Write your test cases in the folder `__tests__` in each `src` subfolder. The name of the file specifies the targeted Source.
6769
For example, `src/steppers/source-0.js` is the Source and a test case might be `src/steppers/__tests__/source-0.js.test1`.
6870

@@ -71,7 +73,11 @@ Each test case is appended to your Source, and then run, using Source §4. The l
7173
parse_and_evaluate("! (1 === 1 && 2 > 3);");
7274
// true
7375
```
74-
76+
Before you can run the tests, you need to install `js-slang` by typing:
77+
```
78+
% yarn
79+
% yarn install
80+
```
7581
Run all test cases by typing:
7682
```
7783
% yarn test

0 commit comments

Comments
 (0)