Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kenherring committed Jan 11, 2025
1 parent 61ccb1a commit 37a9106
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion test/suites/proj0.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ suite('proj0 - Extension Test Suite', () => {
assert.equal(e, undefined, 'expected no error to be thrown, but got e=' + JSON.stringify(e, null, 2))
assert.fail('expected no error to be thrown but got e=' + JSON.stringify(e, null, 2))
}
assert.durationMoreThan(runTestsDuration, 2500)
assert.durationMoreThan(runTestsDuration, 2000)
assert.durationLessThan(runTestsDuration, 3250)
return
})
Expand Down
22 changes: 0 additions & 22 deletions test/suites/proj1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,28 +287,6 @@ suite('proj1 - Extension Test Suite', () => {
return p
})

test('proj17 - coverage in class property getters/setters', async () => {
await runTestAtLine('test17.cls', 15, 1, true)
.then(() => {
assert.tests.count(1)
assert.tests.passed(1)
assert.tests.failed(0)
assert.tests.errored(0)
assert.tests.skipped(0)
})
})

test('proj18 - coverage in class property getters/setters', async () => {
// await runTestAtLine(['test18A.cls', 'test18B.cls'], 15, 1, true)
// .then(() => {
// assert.tests.count(1)
// assert.tests.passed(1)
// assert.tests.failed(0)
// assert.tests.errored(0)
// assert.tests.skipped(0)
// })
})

test('proj1.98 - check startup parmaeters for -y -yx', async () => {
FileUtils.copyFile(Uri.joinPath(workspaceUri, 'openedge-project.proj1.98.json'), Uri.joinPath(workspaceUri, 'openedge-project.json'), { force: true })
await runTestAtLine('import_charset.p', 68)
Expand Down
4 changes: 2 additions & 2 deletions test/testCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ export function runTestsInFile (filename: string, len = 1, coverage = false) {
}

export function runTestAtLine (filename: string, line: number, len = 1, withCoverage = false) {
const command = withCoverage ? 'testing.runAtCursor' : 'testing.coverageAtCursor'
const command = withCoverage ? 'testing.coverageAtCursor' : 'testing.runAtCursor'
const testpath = Uri.joinPath(getWorkspaceUri(), filename)

log.info('running test at line ' + line + ' in ' + testpath.fsPath)
Expand All @@ -584,7 +584,7 @@ export function runTestAtLine (filename: string, line: number, len = 1, withCove
} else {
throw new Error('vscode.window.activeTextEditor is undefined')
}
runTestsDuration = new Duration('runTestsAtLine')
runTestsDuration = new Duration('runTestAtLine command=' + command)
return commands.executeCommand(command)
})
.then(() => {
Expand Down

0 comments on commit 37a9106

Please sign in to comment.