GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — auto-code-rover/TESTING.md at main · AutoCodeRoverSG/auto-code-rover

Expand file tree

/

TESTING.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
53 lines (35 loc) · 1.66 KB
/

TESTING.md

Copy path

File metadata and controls

53 lines (35 loc) · 1.66 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Testing

This project is configured with CI workflows to execute the testing suite on every PR and push to the main branch, as well as pushes to the pytest-ci branch. The testing suite is also configured to run locally using the tox tool.

Setup

To begin running the tests locally, it is assumed that the auto-code-rover environment has already been setup. Refer to the README.md for instructions on how to setup the environment.

The testing suite uses the following libraries and tools:

  • Tox, to configure the tests
  • Pytest, to execute the tests
  • Coverage, (the Coverage.py tool) to measure the code coverage

Creating the auto-code-rover environment using the environment.yaml file:

conda env create -f environment.yml
conda activate auto-code-rover

In the auto-code-rover environment, add conda-forge as a channel, then install the required libraries by running the following command:

conda config --add channels conda-forge
conda config --set channel_priority flexible
conda install -y tox

Running the tests locally

To run the tests, execute the tox command (you can view the configurations in tox.ini) to run the tests:

tox

Alternatively, command to activate the auto-code-rover environment and run the tests:

conda activate auto-code-rover && tox

The test results and the test coverage report will be displayed in the terminal, with a coverage.xml file in the Cobertura format generated in the project's root directory.

Modifying the tox.ini file

To enable missing statement coverage, add the following section the tox.ini file:

[coverage:report]
show_missing = True
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.