Replace behave framework with pytest-bdd and add DataSetComparator (#447)
* Replace behave with pytest_bdd * Add value comparator * Finish value compare * Fix set compare * Execute query and check result steps * Make parser return bytes array rather than string * Add NBA CSV data files * Add types * Generate insert stmt string * Fix row comparing * Generate create stmt string * Use pytest-mproc's global scope to init nebula servers * Fix compare bug * Add student data * Cleanup steps * Fix parser bug * Update parser * Remove pytest-mproc * Fix cleanup nebula services * Fix ci test run parallel * Replace conn pool creation with fixture * Improve the free ports get function * Fix workarround for class fixture usage * improve free port find method * Fix test spaces * Change pytest temp base dir * Improve kill nebula service logics * Update workflow * Fix github workflow step * Address comments
Showing
- .github/workflows/pull_request.yml 2 additions, 1 deletion.github/workflows/pull_request.yml
- CMakeLists.txt 0 additions, 1 deletionCMakeLists.txt
- ci/test.sh 3 additions, 7 deletionsci/test.sh
- tests/.gitignore 2 additions, 0 deletionstests/.gitignore
- tests/admin/test_permission.py 1 addition, 4 deletionstests/admin/test_permission.py
- tests/admin/test_space.py 0 additions, 10 deletionstests/admin/test_space.py
- tests/admin/test_users.py 1 addition, 0 deletionstests/admin/test_users.py
- tests/common/csv_import.py 145 additions, 0 deletionstests/common/csv_import.py
- tests/common/global_data_loader.py 2 additions, 3 deletionstests/common/global_data_loader.py
- tests/common/nebula_service.py 69 additions, 24 deletionstests/common/nebula_service.py
- tests/common/nebula_test_suite.py 48 additions, 50 deletionstests/common/nebula_test_suite.py
- tests/common/types.py 134 additions, 0 deletionstests/common/types.py
- tests/conftest.py 202 additions, 13 deletionstests/conftest.py
- tests/data/nba/bachelor.csv 2 additions, 0 deletionstests/data/nba/bachelor.csv
- tests/data/nba/like.csv 83 additions, 0 deletionstests/data/nba/like.csv
- tests/data/nba/player.csv 53 additions, 0 deletionstests/data/nba/player.csv
- tests/data/nba/schema.ngql 12 additions, 0 deletionstests/data/nba/schema.ngql
- tests/data/nba/serve.csv 153 additions, 0 deletionstests/data/nba/serve.csv
- tests/data/nba/team.csv 31 additions, 0 deletionstests/data/nba/team.csv
- tests/data/nba/teammate.csv 11 additions, 0 deletionstests/data/nba/teammate.csv
tests/.gitignore
0 → 100644
tests/common/csv_import.py
0 → 100644
tests/common/types.py
0 → 100644
tests/data/nba/bachelor.csv
0 → 100644
tests/data/nba/like.csv
0 → 100644
tests/data/nba/player.csv
0 → 100644
tests/data/nba/schema.ngql
0 → 100644
tests/data/nba/serve.csv
0 → 100644
tests/data/nba/team.csv
0 → 100644
tests/data/nba/teammate.csv
0 → 100644
Please register or sign in to comment