IBM / nodejs-idb-connector

A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
37 stars 23 forks source link

test: cleanup test infrastructure #171

Open abmusse opened 1 year ago

abmusse commented 1 year ago
  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.

github-actions[bot] commented 1 year ago

:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.