You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,62 +7,59 @@ The workshop is based on a popular refactoring exercise you can find out more ab
7
7
8
8
## Setup
9
9
10
-
We recommend using [Intellij](https://www.jetbrains.com/idea/download/) as the IDE.
10
+
We recommend using [Intellij](https://www.jetbrains.com/idea/download/) as the IDE, but vscode is also great for this.
11
11
12
-
You might also have to install [nvm-windows](https://github.com/coreybutler/nvm-windows) if you are running on Windows.
13
-
14
-
You will have to install [Node](https://nodejs.org/en/download/package-manager) v18.20.
15
-
This should also install `npm`, the Node packet manager.
12
+
You might also have to install [python](https://www.python.org/downloads/windows/) if you are running on Windows.
16
13
17
14
You don't need to run this in a virtual machine.
18
15
19
-
You might also have to install [ts-node](https://www.npmjs.com/package/ts-node#installation), after you get Node.
16
+
To install the dependencies, run:
20
17
21
18
```console
22
19
# Locally in your project.
23
-
npm install -D typescript
24
-
25
-
npm install -D ts-node
20
+
pip3 install -r requirements.txt
26
21
```
27
22
23
+
Suggestion: create a python virtual environment for this project. See the [documentation](https://docs.python.org/3/library/venv.html)
24
+
28
25
## Getting started
29
26
30
27
**First, fork this repository and clone it on your device.**
31
28
32
29
Then, install dependencies:
33
30
34
31
```console
35
-
npm install
32
+
pip3 install -r requirements.txt
36
33
```
37
34
38
-
## Run the Unit Tests from the Command-Line
35
+
## Run the unit tests from the Command-Line
39
36
40
-
We are using [Jest](https://jestjs.io/) as the testing framework.
37
+
We are using [Pytest](https://docs.pytest.org/en/stable/) as the testing framework
41
38
42
-
To run tests:
43
-
44
-
```console
45
-
npm run test:jest
39
+
```
40
+
pytest
46
41
```
47
42
48
-
To run all tests in watch mode:
43
+
To run test with coverage
49
44
50
-
```console
51
-
npm run test:jest:watch
52
45
```
46
+
pytest --cov=gilded_rose
47
+
```
48
+
49
+
You can also use the python test windows from vscode (you must have the [python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) extension installed)
53
50
54
51
## Running the App
55
52
56
-
You can run the application seeing how the `updateQuality()` function works:
53
+
You can run the application seeing how the `update_quality()` function works:
0 commit comments