These are chat archives for coala/coala-bears

18th
Feb 2017
arnab1896
@arnab1896
Feb 18 2017 05:31
blob

hello devs!
i had a small doubt.

this is what i did--->
1.cloned my fork of coala-bears
2.added a remote to my fork
3.created a new branch
4.pip3 install -r test-requirements.txt -r requirements.txt
5.coala

on executing step 5; i was not expecting any errors since the code is unchanged and was directly cloned.

i'm still getting two errors...why so??

cheers! :tada:

Satwik Kansal
@satwikkansal
Feb 18 2017 05:33
you'll need some NLTK data locally
arnab1896
@arnab1896
Feb 18 2017 05:35
also, executing py.test if skipping tests.
where am i going wrong?
*is
Yash Nisar
@yash-nisar
Feb 18 2017 05:36
coala-bears doesn't have 100% coverage as mentioned in the docs
arnab1896
@arnab1896
Feb 18 2017 05:37
so, if i do some modifications to a bear's *.py file; what is the best way to go about testing whether my changes are okay or not?
Satwik Kansal
@satwikkansal
Feb 18 2017 05:39
py.test works, but if you are adding some additional functionality you'll need to add more tests to cover it
arnab1896
@arnab1896
Feb 18 2017 05:42

but i haven't added any additional functionality yet!

all i'm doing is testing the cloned repository.
:worried:
yet it is skipping the test

Rishav Kumar
@aptrishu
Feb 18 2017 05:42
show the pytest output..
arnab1896
@arnab1896
Feb 18 2017 05:43
blob
Abinash Senapati
@Techievena
Feb 18 2017 05:54
@arnab1896 Does pip list contain pycodestyle and pytest?
Satwik Kansal
@satwikkansal
Feb 18 2017 05:54
@arnab1896 Did you install test-requirements
Looks like your venv is not activated
arnab1896
@arnab1896
Feb 18 2017 05:59
@satwikkansal ; yes i should try and activate venv
@Techievena ; how to view the pip list? :worried:
Abinash Senapati
@Techievena
Feb 18 2017 06:03
pip list
arnab1896
@arnab1896
Feb 18 2017 06:04
blob
@Techievena , no it doesn't contain pycodestyle
but it has pytest
Yash Nisar
@yash-nisar
Feb 18 2017 06:44
Aren't you using a virtualenv ?
arnab1896
@arnab1896
Feb 18 2017 07:40
@yash-nisar , no i wasn't
will try now with venv
Satwik Kansal
@satwikkansal
Feb 18 2017 10:03
After running flush-cache, I'm not able to execute any bear
Screenshot from 2017-02-18 15-31-52.png
Screenshot from 2017-02-18 15-31-52.png
Sorry, it works now, made a silly mistake :(
Mischa Krüger
@Makman2
Feb 18 2017 18:08
@arnab1896 you likely don't have all deps installed
coala-bears uses a ton of external dependencies currently
and the tests do skip when they can't find needed binaries
that's why tests get skipped
if you develop for coala-bears and want to test, you normally execute your specific test with py.test -k YourTest
and see if coverage is full for your component only (others will not be 100% as you just execute a single test)
usually this is enough, if not our CI will complain :)
if you don't want to install 10000 dependencies
you can use our docker image where everything is installed
docker run -it coala/base bash
arnab1896
@arnab1896
Feb 18 2017 18:54
@Makman2 ; thanks! :smile: