Skip to content

Improvement in Wiki #6801

@Shibu778

Description

@Shibu778

Describe the current issue

I am a new contributor to AiiDA. I was going through Development Environment Setup. In the Run tests section, first one needs to go to the cloned aiida-core directory before running the pytest. Further, I encountered ModuleNotFound error during test for flask* and pymatgen modules. Because of this error the pytest was not starting.

Describe the solution you'd like

The Run tests section can be modified as follows:

 cd aiida-core
 pip install .[tests]
 pytest  # run all tests 
 pytest -m presto  # only run tests that are compatible with the presto profile

For ModuleNotFound error either an update in Run tests section can be done as follows:

 cd aiida-core
 pip install .[tests]
 pip install .[rest]
 pip install .[atomic_tools]
 pytest  # run all tests 
 pytest -m presto  # only run tests that are compatible with the presto profile

Or relevant packages can be included in the following list in pyproject.toml file.

tests = [
  'aiida-export-migration-tests==0.9.0',
  'pg8000~=1.13',
  'pgtest~=1.3,>=1.3.1',
  'pytest~=7.0',
  'pytest-asyncio~=0.12,<0.17',
  'pytest-timeout~=2.0',
  'pytest-cov~=4.1',
  'pytest-rerunfailures~=12.0',
  'pytest-benchmark~=4.0',
  'pytest-regressions~=2.2',
  'pytest-xdist~=3.6',
  'pympler~=1.0',
  'coverage~=7.0',
  'sphinx~=7.2.0',
  'docutils~=0.20'
]

I think the first solution is better as it will keep the packages separated.

I saw a lot of transport tests failing. The solution provided Tests for the transport plugins require that your default ssh key id_rsa can be used to connect to localhost. can be little more descriptive. Now I will try to fix it and will update a suggestion soon.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions