Get texttests working for Javascript-Jest

This commit is contained in:
emily committed 2023-11-03 15:36:54 +01:00
1 parent 6df86da845
commit c1638a56b8
4 files changed
+29 -7

No files matched your search

+20 -4
View File
@@ -1,6 +1,4 @@
# Gilded Rose
This is the Gilded Rose kata in JavaScript with Jest
# Gilded Rose in Javascript with Jest
## Getting started
@@ -10,7 +8,7 @@ Install dependencies
npm install
```
## Running tests
## Run the unit tests from the Command-Line
To run all tests
@@ -29,3 +27,21 @@ To generate test coverage report
```sh
npm run test:coverage
```
## Run the TextTest fixture from the Command-Line
For e.g. 10 days:
```
node test/texttest_fixture.js 10
```
You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).
## Run the TextTest approval test that comes with this project
There are instructions in the [TextTest Readme](../texttests/README.md) for setting up TextTest. You will need to specify the Javascript-Jest executable and interpreter in [config.gr](../texttests/config.gr). Uncomment these lines:
executable:${TEXTTEST_HOME}/js-jest/test/texttest_fixture.js
interpreter:node