benedekrozemberczki/karateclub

Test statement does nothing

WhatTheFuzz opened this issue · 1 comments

The README specifies here that users can run tests via:

python setup.py test

However, I don't see this reflected in the output—note 0 out of 0 tests.

python3 setup.py test
WARNING: The wheel package is not available.
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
running egg_info
writing karateclub.egg-info/PKG-INFO
writing dependency_links to karateclub.egg-info/dependency_links.txt
writing requirements to karateclub.egg-info/requires.txt
writing top-level names to karateclub.egg-info/top_level.txt
reading manifest file 'karateclub.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'karateclub.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

Judging by the CI actions, I think this is meant to be tested with pytest.

pip3 install --user install purest
cd karateclub/
pytest

======================================================== test session starts =========================================================
platform darwin -- Python 3.10.5, pytest-7.2.0, pluggy-1.0.0
rootdir: /Users/sean/Developer/karateclub
collected 47 items                                                                                                                   

test/attributed_node_embedding_test.py .........                                                                               [ 19%]
test/community_detection_nonoverlapping_test.py ....                                                                           [ 27%]
test/community_detection_overlapping_test.py ......                                                                            [ 40%]
test/graph_embedding_test.py .........                                                                                         [ 59%]
test/meta_embedding_test.py .                                                                                                  [ 61%]
test/neighbourhod_based_node_embedding_test.py ...............                                                                 [ 93%]
test/structral_node_embedding_test.py ..                                                                                       [ 97%]
test/test_base.py .                                                                                                            [100%]
...
============================================ 47 passed, 855 warnings in 146.75s (0:02:26) ============================================

Resolved in #119.