LogoLogo
1.1.0
  • Home
  • Install
  • Docs
  • Contribute
  • Journey
1.1.0
  • Contributing
  • Codebase Structure
  • Building Varphi
  • Testing and Linting
Powered by GitBook
LogoLogo

© 2025 Hassan El-Sheikha

On this page
  • Testing Your Code
  • Running All Unit and End-to-End Tests
  • Linting
  • Automatic Testing and Linting

Was this helpful?

Export as PDF

Testing and Linting

PreviousBuilding Varphi

Was this helpful?

Testing Your Code

All tests for the Varphi project are located under the testsdirectory. When testing Python code, please use Pytest as the testing framework (for examples of Pytest tests, please check the existing tests). When implementing a new feature for Varphi, please be sure to test it thoroughly before opening a pull request on GitHub. When you're finished testing your own feature, make sure your new code does not break any existing tests by running all existing tests, as shown below.

Running All Unit and End-to-End Tests

The easiest way to run all tests is to run

$ make test

This will rebuild Varphi and run all tests.

Linting

For pull requests to be considered, the codebase is checked against a linter. We use to do this. The easiest way to run linting on the codebase is to run

$ make lint

This will rebuild Varphi and run linting on the varphidirectory.

Automatic Testing and Linting

We also have a GitHub workflow to automatically test and lint the code base in the event that a pull request is made to the main branch. You should double check that your code passes these checks when you open a pull request.

Pylint