2019-11-15 22:33:54 +01:00
|
|
|
' Gambas module file
|
|
|
|
|
|
|
|
Public Sub Main()
|
|
|
|
|
2020-05-01 10:42:29 +02:00
|
|
|
Dim asGood As New String[]
|
2020-04-09 08:13:09 +02:00
|
|
|
Dim Tests As String
|
|
|
|
|
2020-05-01 10:42:29 +02:00
|
|
|
With asGood
|
|
|
|
.Add("TestAllAsserts")
|
|
|
|
.Add("TestElse")
|
|
|
|
.Add("TestError")
|
|
|
|
.Add("TestInternals")
|
|
|
|
.Add("TestFailures")
|
|
|
|
.Add("TestSetup")
|
|
|
|
.Add("TestSummary.DoSomeAsserts")
|
|
|
|
.Add("TestSummary.DoTodo")
|
|
|
|
.Add("TestSummary.DoSkip")
|
|
|
|
End With
|
|
|
|
|
2020-04-25 11:38:52 +02:00
|
|
|
' ------------------------------------------------- These must succeed
|
2020-05-01 10:42:29 +02:00
|
|
|
Tests = asGood.Join(",")
|
2020-05-26 12:50:39 +02:00
|
|
|
'Test.Main(Tests)
|
|
|
|
|
|
|
|
'Print Test.AllTests()
|
2020-04-25 11:38:52 +02:00
|
|
|
|
|
|
|
' ------------------------------------------------- This must not succeed
|
|
|
|
'Tests = "TestCrashes"
|
2020-05-01 10:42:29 +02:00
|
|
|
'Tests = "TestSummary"
|
2020-04-25 11:38:52 +02:00
|
|
|
|
2020-04-26 11:01:48 +02:00
|
|
|
' ------------------------------------------------- These must bailout
|
2020-04-25 11:38:52 +02:00
|
|
|
'Tests = "TestBailout"
|
2020-04-26 11:01:48 +02:00
|
|
|
'Tests = ""
|
2020-04-26 11:23:01 +02:00
|
|
|
'Tests = "TestAllAsserts, Wurstsupp"
|
2020-04-25 11:38:52 +02:00
|
|
|
|
|
|
|
' ------------------------------------------------- Playing field
|
2020-05-01 10:42:29 +02:00
|
|
|
|
2020-04-26 11:23:01 +02:00
|
|
|
'Tests = "TestAllAsserts, Wurstsupp"
|
2020-04-09 08:13:09 +02:00
|
|
|
|
2020-05-23 08:10:33 +02:00
|
|
|
'Debug TestCommand.ToString(TestRunner.List("~/programming/gambas/gambas/comp/src/gb.test"))
|
2020-05-14 13:08:03 +02:00
|
|
|
|
2020-05-23 12:09:34 +02:00
|
|
|
'Tests = "TestInternals.InterpreterInterface"
|
2020-05-26 12:50:39 +02:00
|
|
|
Test.Main(Tests)
|
2020-05-23 12:09:34 +02:00
|
|
|
|
|
|
|
' ------------------------------------------------- Interpreter Interface
|
|
|
|
' Dim testclass As Class
|
|
|
|
'
|
|
|
|
' testclass = Class.Load("TestElse")
|
|
|
|
' Test._Add(testclass, "TestElse.TestNote")
|
|
|
|
' testclass = Class.Load("TestAllAsserts")
|
|
|
|
' Test._Add(testclass, "TestAllAsserts")
|
|
|
|
' ' these are already contained, do not increase the numbers of tests!
|
|
|
|
' Test._Add(testclass, "TestAllAsserts.TestNote;TestLike")
|
|
|
|
'
|
|
|
|
' Test._Run()
|
2020-01-24 10:10:39 +01:00
|
|
|
|
2020-05-01 18:59:20 +02:00
|
|
|
End
|