Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unittest CI #4

Merged
merged 12 commits into from
Apr 10, 2024
Merged

Unittest CI #4

merged 12 commits into from
Apr 10, 2024

Conversation

lbellmann
Copy link
Collaborator

  • added automatic unit tests
  • moved db test flag from config file to pytest commandline arguments
  • unit tests use Neo4J docker image
  • staticmethod function usage only works with Python >=3.10

- triggered on push and pull requests to develop and main
  - main does not exist yet, fails?
- checkout code, install requirements, trigger unit test, upload results
- multiple python versions
- static method calls behaviour does not match Python 3.9, removed it
- set python version >= 3.10 in setup.py
- upgraded setup python action to v5
- originally global variables have to be set in config file
  - inconvenient for automated testing, would have to rewrite file every time
- created pytest config with 4 parameters
  - flag if db test should be executed
  - neo4j host
  - neo4j port
  - user name
  - password
- password must be at least 8 characters
- environment variable rename, was deprecated
- username/password were missing in cypher shell command
- added graphxplore to path for import
- warnings when db test where not triggered were faulty because of copy/paste
- tested Neo4J error return message when sending invalid Cypher statement
  - error message changed in Neo4J 5.xxx
- now only beginning of error message is checked that is defined by GXP
- added unit test badge to README.md
- renamed workflow
@lbellmann lbellmann merged commit 6f52153 into develop Apr 10, 2024
3 checks passed
@lbellmann lbellmann deleted the ciunittests branch April 10, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant