-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #5 checking for test naming collisions needs improvements with …
…Params tests - can lead to vague error messages for params - updates names of duplicate groups, and adds a very clear warning
- Loading branch information
George Cook
committed
Oct 1, 2018
1 parent
309dbb5
commit 2c130c6
Showing
6 changed files
with
107 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Function BuildDate() | ||
return "Oct 1 2018 19:47:45" | ||
return "Oct 1 2018 20:03:00" | ||
End Function | ||
Function BuildCommit() | ||
return "e9f42a4" | ||
return "309dbb5" | ||
End Function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,48 @@ | ||
'@TestSuite [RBSA] Rooibos before after tests | ||
'@TestSuite [DGNT] Duplicate Group Name Tests | ||
|
||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It tests before each and after each are running | ||
'@It group1 | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
'@BeforeEach | ||
function RBSA__BeforeEach() as void | ||
? "!!! Before" | ||
'@Test simple | ||
function DGNT_group1_test() | ||
m.AssertTrue(true) | ||
end function | ||
|
||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It group2 | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
'@Test simple | ||
function DGNT_group2_test() | ||
m.AssertTrue(true) | ||
end function | ||
|
||
|
||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It group2 | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
'@AfterEach | ||
function RBSA__AfterEach() as void | ||
? "!!! After" | ||
'@Test simple | ||
function DGNT_group2_dupe_test() | ||
m.AssertTrue(true) | ||
end function | ||
|
||
'@Test before after | ||
function RBSA__before_after() as void | ||
|
||
assertResult = m.Fail("reason") | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It group3 | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
isFail = m.currentResult.isFail | ||
m.currentResult.Reset() | ||
'@Test simple | ||
function DGNT_group3_test() | ||
m.AssertTrue(true) | ||
end function | ||
|
||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It group1 | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
m.AssertFalse(assertResult) | ||
m.AssertTrue(isFail) | ||
'@Test simple | ||
function DGNT_group1_dupe_test() | ||
m.AssertTrue(true) | ||
end function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'@TestSuite [RBSA] Rooibos before after tests | ||
|
||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
'@It tests before each and after each are running | ||
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
'@BeforeEach | ||
function RBSA__BeforeEach() as void | ||
? "!!! Before" | ||
end function | ||
|
||
|
||
'@AfterEach | ||
function RBSA__AfterEach() as void | ||
? "!!! After" | ||
end function | ||
|
||
'@Test before after | ||
function RBSA__before_after() as void | ||
|
||
assertResult = m.Fail("reason") | ||
|
||
isFail = m.currentResult.isFail | ||
m.currentResult.Reset() | ||
|
||
m.AssertFalse(assertResult) | ||
m.AssertTrue(isFail) | ||
end function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters