# Tests in Travis are not running

**URL:** <https://travis-ci.community/t/tests-in-travis-are-not-running/8683>\
**Category:** Python\
**Created:** [May 18, 2020, 7:11pm UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683 "2020-05-18T19:11:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Totobriac](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/totobriac/32/5310_2.png) [@Totobriac](https://travis-ci.community/u/Totobriac)\
**Post date:** [May 18, 2020, 7:11pm UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683/1 "2020-05-18T19:11:39Z")

</div>

I trigger a build on my app but Travis doesn’t run any test. As suggested on Travis official doc, I have created a postgresql db before\_script.

Here is my .travis.yml:

```auto
 language: python
python:
  - '3.7'    
before_script:
  - pip install -r requirements.txt    
env: DJANGO_SETTINGS_MODULE=my_app.settings.travis    
services:
  - postgresql    
before_script:
  - psql -c 'create database travis_ci_test;' -U postgres      
script:
  - ./My-App/manage.py test

```

And my Job log:

```auto
Setting environment variables from .travis.yml
$ export DJANGO_SETTINGS_MODULE=my_app.settings.travis
$ source ~/virtualenv/python3.7/bin/activate
$ python --version
Python 3.7.1
$ pip --version
pip 19.0.3 from /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip (python 3.7)    
$ pip install -r requirements.txt    
$ psql -c 'create database travis_ci_test;' -U postgres
$ ./My-App/manage.py test

System check identified no issues (0 silenced).
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
The command "./My-App/manage.py test" exited with 0.
Done. Your build exited with 0.

```

I have 9 tests running fine locally with `python3 manage.py test` . Do I have to ligrate first?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 27, 2020, 6:17am UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683/2 "2020-05-27T06:17:15Z")

</div>

Any way you could post more of your `.travis.yml` file?

---

<div class="post-metadata">

**Author:** ![Totobriac](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/totobriac/32/5310_2.png) [@Totobriac](https://travis-ci.community/u/Totobriac)\
**Post date:** [May 27, 2020, 6:29am UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683/3 "2020-05-27T06:29:54Z")

</div>

I fixed it. I had my travis.yml in the wrong folder

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 27, 2020, 6:41am UTC](https://travis-ci.community/t/tests-in-travis-are-not-running/8683/4 "2020-05-27T06:41:13Z")

</div>

Glad you fixed it,

If you run into anymore problems please be sure to post back, and I’ll help you.
