gb.test minor fix load component gb.util
This commit is contained in:
parent
ae5dff6681
commit
a79bd9d258
2 changed files with 4 additions and 2 deletions
|
@ -239,6 +239,8 @@ Private Function GetAllTestModules() As String[]
|
|||
Dim sName As String
|
||||
Dim hStat As ClassStat
|
||||
|
||||
Component.Load("gb.util")
|
||||
|
||||
For Each sName In Dir(".../.gambas")
|
||||
hStat = Class.Stat("..." &/ sName)
|
||||
If hStat.Test Then sNames.Add(hStat.Name)
|
||||
|
@ -433,4 +435,4 @@ Private Sub FromString(Tests As String)
|
|||
End With
|
||||
Next
|
||||
|
||||
End
|
||||
End
|
||||
|
|
|
@ -80,7 +80,7 @@ Static Public Function FromString(Tests As String) As TestCommand[]
|
|||
sMethod = Trim(Right(sCommand, Len(sCommand) - InStr(sCommand, ".")))
|
||||
|
||||
If InStr(sMethod, ";") > 0 Then
|
||||
asMethod = split(sMethod, ";")
|
||||
asMethod = Split(sMethod, ";")
|
||||
.Methods = asMethod
|
||||
Else
|
||||
.Methods.Add(sMethod)
|
||||
|
|
Loading…
Reference in a new issue