test: quick run

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2023-10-02 18:57:13 +05:30
parent bc9e9964ab
commit 2b167d326b
14 changed files with 61 additions and 9 deletions

View File

@@ -12,6 +12,10 @@ const isPg = (context: NcContext) => context.dbType === 'pg';
const isEE = () => process.env.EE === 'true';
// run all the tests for PG; disable some tests for mysql, sqlite to reduce CI time
//
const enableQuickRun = () => (process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE) !== 'pg';
const pg_credentials = (context: NcContext) => ({
user: 'postgres',
host: 'localhost',
@@ -65,4 +69,4 @@ async function sqliteExec(query) {
}
}
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE };
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE, enableQuickRun };