labcodes / labcodes/django-react-boilerplate

Add tox as test runner

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
45
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Tox is useful when it is necessary to test against various versions of the Python interpreter and libraries, etc and have an isolated test environment.
It is also good for not being locked to a specific CI system, only simple install tox and run tox

https://tox.readthedocs.io/en/latest/

A complex tox configuration sample:
https://github.com/lumocodes/django-versatileimagefield/blob/django3.2_tox_github_actions/tox.ini
https://github.com/lumocodes/django-celery-beat/blob/master/tox.ini

If the tests need external applications to run, there is the tox-docker plugin that is capable of running docker containers and stopping them during the testing process. In other words: it is an easy way to have postgresql running
A sample usage of tox-docker
https://github.com/lumocodes/django-timezone-field/blob/master/tox.ini#L46-L67

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the repository's existing test and CI setup, then compare the linked tox.ini examples and the tox documentation. Determine the project's supported Python and library versions and whether external applications such as PostgreSQL are required. Done means the test suite runs in an isolated environment with the tox command and remains usable independently of a specific CI system.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
build-system, ci-cd, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.