Skip to content

Commit

Permalink
dont run empty test lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobgetz committed Feb 6, 2024
1 parent 2635341 commit 0fb49a7
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions tests/run-tests.cts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ function writeSummary(type: string, testCount: number, successfull: number, roun
}

async function runNodeTests(names: string[], options) {
if (names.length > 0) {
console.log('==============')
console.log('Run node tests')
console.log('==============')
if (names.length === 0) {
return
}
console.log('==============')
console.log('Run node tests')
console.log('==============')
// ignore specific tests
let filter = [
'rust-tictactoe',
Expand Down Expand Up @@ -202,13 +203,14 @@ function compareResults(testPath: string, traceString: string, replayTraceString
}

async function runOnlineTests(names: string[], options) {
if (names.length > 0) {
console.log('================')
console.log('Run online tests')
console.log('================')
console.log('WARNING: You need a working internet connection')
console.log('WARNING: Tests depend on third party websites. If those websites changed since this testsuite was created, it might not work')
if (names.length === 0) {
return
}
console.log('================')
console.log('Run online tests')
console.log('================')
console.log('WARNING: You need a working internet connection')
console.log('WARNING: Tests depend on third party websites. If those websites changed since this testsuite was created, it might not work')
// ignore specific tests
let filter = [
'ogv', // TODO: additional ER at end of original trace
Expand Down Expand Up @@ -239,11 +241,12 @@ async function runOnlineTests(names: string[], options) {
}

async function runOfflineTests(names: string[], options) {
if (names.length > 0) {
console.log('=================')
console.log('Run offline tests')
console.log('=================')
if (names.length === 0) {
return
}
console.log('=================')
console.log('Run offline tests')
console.log('=================')
// ignore specific tests
let filter = [
'sqllite',
Expand Down

0 comments on commit 0fb49a7

Please sign in to comment.