nebula-test-run.py运行失败

按照这个下面的readme 使用nebula-test-run.py进行测试:nebula-graph/tests at master · vesoft-inc/nebula-graph · GitHub

出现如下错误:
[root@58ec0cfe2261 tests]# ./nebula-test-run.py
Traceback (most recent call last):
File “./nebula-test-run.py”, line 22, in
from tests.common.configs import init_configs
ModuleNotFoundError: No module named ‘tests’

解决了,路径配置有问题。

随便跑了一下,发现很多错误。
open: /home/guojun/source/bigo/dfs_nebula-graph/tests/…/tests/data/nba.ngql
================================================================== test session starts ==================================================================
platform linux – Python 3.6.8, pytest-5.3.2, py-1.10.0, pluggy-0.13.1 – /usr/bin/python3
cachedir: .pytest_cache
benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
metadata: {‘Python’: ‘3.6.8’, ‘Platform’: ‘Linux-4.4.0-21-generic-x86_64-with-centos-7.8.2003-Core’, ‘Packages’: {‘pytest’: ‘5.3.2’, ‘py’: ‘1.10.0’, ‘pluggy’: ‘0.13.1’}, ‘Plugins’: {‘benchmark’: ‘3.2.3’, ‘drop-dup-tests’: ‘0.3.0’, ‘forked’: ‘1.3.0’, ‘metadata’: ‘1.8.0’, ‘xdist’: ‘1.31.0’, ‘html’: ‘2.0.1’, ‘reportlog’: ‘0.1.0’, ‘bdd’: ‘4.0.1’, ‘yapf3’: ‘0.5.1’}}
rootdir: /home/guojun/source/bigo/dfs_nebula-graph/tests, inifile: pytest.ini
plugins: benchmark-3.2.3, drop-dup-tests-0.3.0, forked-1.3.0, metadata-1.8.0, xdist-1.31.0, html-2.0.1, reportlog-0.1.0, bdd-4.0.1, yapf3-0.5.1
collected 804 items

admin/test_charset.py::TestCharset::test_show_charset PASSED [ 0%]
admin/test_charset.py::TestCharset::test_show_collate PASSED [ 0%]
admin/test_configs.py::TestConfigs::test_configs FAILED [ 0%]
admin/test_configs.py::TestConfigs::test_update_configs SKIPPED [ 0%]
admin/test_parts.py::TestParts::test_part PASSED [ 0%]
admin/test_permission.py::TestPermission::test_simple FAILED [ 0%]
admin/test_permission.py::TestPermission::test_user_write FAILED [ 0%]
admin/test_permission.py::TestPermission::test_schema_and_data FAILED [ 0%]
admin/test_permission.py::TestPermission::test_show_test FAILED [ 1%]
admin/test_permission.py::TestPermission::test_show_roles FAILED [ 1%]
admin/test_permission.py::TestPermission::test_show_roles ERROR [ 1%]

我们的测试框架已经修改过了,好像文档还没有更新 @Amber
现在的测试运行流程如下:

  1. 第一次运行时,在nebula/tests目录输入 make init-all
  2. 运行pytest集成测试:make test
  3. 运行tck框架集成测试:make tck
2 个赞

请问下载 master里面的测试都是可以通过的吗?

我现在的状态是 make test可都通过。 make tck一大半过不了

没有通过的测试的原因是啥? 如果是servers not started in 20s, 那就再跑一次。

搞定了,原因是每次修改schema之后 sleep的时间太短,导致有时候找不到 schema。

4 个赞