Skip to content

Testcases Run #204

Open
Open
@AkhileshNegi

Description

@AkhileshNegi

Describe the bug
Currently, when running test cases in the local environment, they run against the same dev database. This causes inconsistencies as the database starts in different states. Additionally, the database cleaned up after all the test cases are run, losing the current setup

To Reproduce
Steps to reproduce the behavior:

  1. Go to /backend
  2. Run this python -m app.seed_data.seed_data to seed an organization
  3. Run this uv run bash scripts/tests-start.sh to run the testcases
  4. It should result in this
Image

Expected behavior

  • Test cases should run in a separate database instance, starting from the same state each time, and should clean up the database after execution. So, running testcases should give consistent results
  • Also remove the testcases that are skipped

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions