Skip to content

Commit 3b2346f

Browse files
authored
Update README.md
1 parent a827695 commit 3b2346f

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ The repository uses pytest as the test writing library for different scenarios u
55
Set up pytest in VS code.
66

77
## Prerequisites
8-
Before we set up Pytest in VS Code, you need to install the below prerequisites in your operating system,
9-
* VS Code
10-
* Python
8+
Before we set up Pytest in VS Code, you need to install the below prerequisites in your operating system-
9+
* VS Code
10+
* Python
1111

1212
## Setting Up Pytest In VS Code
13-
To set up Pytest in VS Code, follow the steps described below
14-
Pip3 install pytest
15-
Pip3 show pytest to check the version
13+
To set up Pytest in VS Code, follow the steps described below-
14+
Check the pip version installed and use the set up version to work with pytest -
15+
* Pip3 install pytest
16+
* Pip3 show pytest : To check the version
1617

17-
## Step 1 - Install Python Extension in VS Code
18+
## Installing Python Extension in VS Code
1819
Open your VS Code and search for Python on the extensions. You’ll find the Python extension at the top of the search result. Select and click install.
1920
This allows to work with python interact within VSCode and utilize Github copilot as an agent.
2021

@@ -24,26 +25,25 @@ Click the flask icon on the left tool bar. You can find this once you open a rep
2425
Now click on “Configure Python Tests”, select pytest and the test code library
2526

2627
After configuring Pytest, VS Code will automatically discover your Unit Tests. You can customise which folder to look for tests in the settings under "python.testing.cwd" parameter in the .vscode/settings.json file.
27-
## install requests
28-
* To download and install requests, run this command from the terminal : pip install requests
28+
## Installing requests
29+
* To download and install requests, run this command from the terminal : pip install requests
2930

30-
## Set up virtual environment
31+
## Settting up virtual environment
3132
Pytest works best in virtual environments when using in VSCode. A virtual environment  is a built-in way to create an environment. A virtual environment creates a folder that contains a copy (or symlink) to a specific interpreter. When you install packages into a virtual environment it will end up in this new folder, and thus isolated from other packages used by other workspaces.
3233
Working in virtual environments-
3334
Pyenv is a library to work with different python environments-
34-
brew install pyenv
35-
pyenv install 3.13
35+
* brew install pyenv
36+
* pyenv install 3.13
3637

3738
## Add libraries to be used in the package to requirements.txt :
3839
Set up requirements.txt for required packages
3940
pydantic- For contract tests
4041
requests - To get data from APIs
41-
pytest-
42-
jsonschema
42+
pytest- python test library
43+
jsonschema
4344
pytest-html
4445
pytest-cov
4546
pre-commit
46-
4747
*  pip install -r requirements.txt
4848

4949
## Report view in VScode in TEST RESULTS :

0 commit comments

Comments
 (0)