Skip to content

ndcahuang/web-assignment

Repository files navigation

web-assignment

Install required packages

On Windows

.\install.bat

On Unix or MacOS

./install.sh

Enabling virtual environment

On Windows

.\.venv\Scripts\activate

On Unix or MacOS

source .venv/bin/activate

Running Flask tests and generating a coverage report

Run the test script

coverage run test.py

For a report in the command line output

coverage report main.py

For an html report

coverage html

Running the server

On Windows

.\run.bat

On Unix or MacOS

./run.sh

Running unit tests with requests module

Warning: These commands require a separate virtual environment. Use another shell if applicable.

On Windows

python .\test_with_requests.py

On Unix or MacOS

python ./test_with_requests.py

Running robot framework tests

Warning: These commands require a separate virtual environment. Use another shell if applicable.

On Windows

cd robot ; robot test.robot ; cd ..

On Unix or MacOS

cd robot && robot test.robot && cd ..

Exiting virtual environment

deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published