Skip to content

Commit

Permalink
First improvements #128
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc van Vugt committed Feb 20, 2023
1 parent e9bfe8a commit fe7608d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions vscode-extension/src/test/atddTestScenariosAndResults_Add.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ suite('Add', function () {
await TestHelper.resetConfigurations();
});

test('Scenario001', async () => {
test('Scenario 001 - Add New Given', async () => {
//Given Test function with valid Given-When-Then structure
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
//When Add Given "New Given"
Expand All @@ -28,7 +28,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario001.al');
})
test('Scenario002', async () => {
test('Scenario 002 - Add New Given 2', async () => {
//Given Result from scenario 1
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
//When Add Given "New Given 2"
Expand All @@ -45,7 +45,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario002.al');
})
test('Scenario003', async () => {
test('Scenario 003 - Add duplicate Given', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles();
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
Expand All @@ -63,7 +63,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario003.al');
})
test('Scenario010', async () => {
test('Scenario 010 - Add New Given with non-alphabetic or non-numerical characters', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles()

Expand All @@ -82,7 +82,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario010.al');
})
test('Scenario012', async () => {
test('Scenario 012 - Add New Given with only lowercase characters', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles()

Expand All @@ -101,7 +101,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario012.al');
})
test('Scenario014', async () => {
test('Scenario 014 - Given prefix', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles()

Expand All @@ -123,7 +123,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario014.al');
})
test('Scenario061', async () => {
test('Scenario 061 - Given helper function with no exception', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles()

Expand All @@ -145,7 +145,8 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario061.al');
})
test('Scenario004', async () => {

test('Scenario 004 - Add New Then', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles()

Expand All @@ -165,7 +166,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario004.al');
})
test('Scenario005', async () => {
test('Scenario 005 - Add New Then 2', async () => {
//Given Result from scenario 4
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')

Expand All @@ -183,7 +184,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario005.al');
})
test('Scenario011', async () => {
test('Scenario 011 - Add New Then with non-alphabetic or non-numerical characters', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles();
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
Expand All @@ -202,7 +203,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario011.al');
})
test('Scenario013', async () => {
test('Scenario 013 - Add New Then with only lowercase characters', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles();
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
Expand All @@ -221,7 +222,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario013.al');
})
test('Scenario015', async () => {
test('Scenario 015 - Then prefix', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles();
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
Expand All @@ -242,7 +243,7 @@ suite('Add', function () {
//Then
await TestHelper.verifyResult(messageUpdate, 'scenario015.al');
})
test('Scenario062', async () => {
test('Scenario 062 - Then helper function with no exception', async () => {
//Given Test function with valid Given-When-Then structure
await TestHelper.resetFiles();
let fsPath: string = TestHelper.getFsPathOfTestProject('TestObject.Codeunit.al')
Expand Down

0 comments on commit fe7608d

Please sign in to comment.