-
Notifications
You must be signed in to change notification settings - Fork 0
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
3008 cleanup and enabling test #29
Conversation
* - Added start for cypress test suite * - Added cypress tests to the task file * - initial config for circi * - converting from task to bash command for the moment * - fix format * - changing executor * - install node packages * - new node command * - fixed syntax * - debugging * - use npm to install packages * - install task with NOde * - remove unneeded orb * - Adding git hooks * - update format * - add missing quote * - naming * - Fix naming * - Updating paths * - Removing unnecessary param * - docs update * - remove settings file - add .vscode to igniore * - Fix merge conflicts * - Updated model to use correct multiselect filter - adding stub cypress test for using custom filter * - Update so dummy models and admin classes work - Updated multiselect filter to work * - Added test for multiselect filtering * - missing newline * - changing url to avoid redirect * - update test task * - revert * - add init task
database_config = { | ||
"sqlite": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
"NAME": ":memory:", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the sqlite DB is always in memory, does that mean we have to run makemigrations
and other init
commands for each call to task up
? Or does the in memory DB still get serialized to disk when the container is brought down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sqlite is in fact not in memory but on disk. it creates .sqlite file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that is the case can we specify an actual name for the DB? :memory:
is supposed to be a special name in sqlite and I'd be worried about unintended side effects! See here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final ask, but everything looks good!
- checkout | ||
- install_node_packages | ||
- run: task init | ||
- run: task test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be nice to split the different test runs in circleci so they show as different steps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small suggestion. otherwise really appreciate the test coverage and i think the cypress tests are well written! great work
Summary of changes:
Various cleanups, deletion, additions:
How to test:
Run task pytest, this will run the pytest files. Additionally, you cypress end-to-end test can run using task command.
How tested:
In addition to added pytests to ensure the package is still compliant with TANF-app, the package was pulled as a dependency into TANF app and admin page was browsed, and tested using cypress test. The filters seemed to work as expected.