Skip to content

test: cleanup test infrastructure #171

@abmusse

Description

@abmusse
  1. Create our own libray/schema to hold test tables, procedures, etc
  2. No longer use QIWS.QCUSTCDT for insert tests (Use our own test tables)
  3. Add after/afterEach hooks to delete data inserted by test cases (remove created tables, etc)

I've noticed when running the test suite multiple times this test case in asyncStatementTest.js leads to assertion error here this is because it inserts into the QIWS.QCUSTCDT table each time and the number results increase. Therefore no way to assert that value is 1. One way to workaround this would be to check is the results are > 0. I would rather not insert into that table at all though and use our own tables. Cleaning up after the case is finished.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions