lightdock / lightdock-python2.7

Protein-protein, protein-peptide and protein-DNA docking framework based on the GSO algorithm
https://lightdock.org/
GNU General Public License v3.0
25 stars 9 forks source link

Test frameworks: 0 ran #13

Closed rafaeltiveron closed 5 years ago

rafaeltiveron commented 5 years ago

Probably test didn't work.

 ./run_tests.sh lib
******* Library tests *******

----------------------------------------------------------------------
Ran 0 tests in 0.002s

OK
brianjimenez commented 5 years ago

Please, in order to discard problems with nosetests, could you please: cd lightdock and then nosetests-2.7 --exe

rafaeltiveron commented 5 years ago

Sure:

LightDock/lightdock $ nosetests-2.7 --exe
@> ProDy is configured: verbosity='info'
................................................................................             ...................F............................................................             ................................................................................             ...
======================================================================
FAIL: lightdock.test.mathutil.test_ellipsoid.TestEllipsoid.test_calculate_center
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/rafael/programas/LightDock/lightdock/test/mathutil/test_ellipsoid.             py", line 70, in test_calculate_center
    assert np.allclose(ellipsoid.center, [0.67988148, 0.50782009, 1.02831747], E             RROR_TOLERANCE)
AssertionError

----------------------------------------------------------------------
Ran 243 tests in 47.571s

FAILED (failures=1)
brianjimenez commented 5 years ago

Now it looks correct. Probably a +x permission issue. There is one test which is not passing, but it's only a numerical instability issue, nothing to worry about. If you want to pass the rest of tests (regression), just remove execution permission to the .py files or just add in run_tests.sh the flag --exe after nosetests-2.7.

rafaeltiveron commented 5 years ago

Thank you. I ran the rest of tests and it is all ok. Just one observation: before running for the first time run_tests.sh, I had to install python-nose, too, even with python-nose2 just installed.

brianjimenez commented 5 years ago

Thank you for your comment, I will also add python-nose to the list of dependencies.