How to disable the default nosetests?

As we’re using tox and python’s build-in unittest framework, the tests runs twice. Once by nosetests and another time by tox.

According to the docs CircleCi will automatically find unittest.py and runs nosetest, but we dont have any physical file named as unittest.py.

Any help will be greatly appreciated.

For most phases in circle.yml, using override will override CircleCI’s inference commands in favor of your own.

So something like:

test:
  override:
    - my test command

would run your own test commands and tell CircleCI not to run anything on its own for that phase. More information: https://circleci.com/docs/1.0/configuration/

Hahaha I just came back with a quick fix to update this post! I guess I’m right, @FelicianoTech thanks! :slight_smile:

This worked for me:

machine:
  post:
    - pyenv global 3.5.2
test:
  override:
    - tox
1 Like