Existing VBA tests in basic/qa/vba_tests involve a depressing amount of cut/paste coding - in particular of:
Sub TestLog_ASSERT(assertion As Boolean, Optional testId As String, Optional testComment As String)
Dim passCount As Integer
Dim failCount As Integer
Dim result As String
It would be great to create two other small files for these:
And to tweak:
to substitute these into all the other .vb files so we have a consistent set.
It'd be nice to get the OnError handling good too eg.
TestLog_ASSERT (False), "hit error handler - " & Err & ": " & Error$ & " (line : " & Erl & ")"
So it prints the actual error / line numbers etc. And of course the body of:
Function doUnitTest() As String
result = verify_win32compat()
If failCount <> 0 Then
doUnitTest = result
doUnitTest = "OK"
To reduce cut/paste to the maximum =)
I'd suggest using %%include sharedvariables.vb%% or somesuch syntax - you'll need to invent that, there is no pre-proc in VBA =) and impl. it in the unit test.
Hello! I'm starting work on this bug.
Migrating Whiteboard tags to Keywords: (easyHack, difficultyBeginner, skillCpp, topicCleanup)
JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC)
I would like to start to work on this issue.
(In reply to Marc Antoine Dumont from comment #4)
> I would like to start to work on this issue.
Welcome, please assign it to yourself.
here is a step by step guide to help you get started:
A polite ping, still working on this issue ?
Unassing, due to lack of work...if you still work on it, please assign it again.
Hello, I would like to work on this issue. I am confused about the contents
that the above two mentioned files " sharedVariables.vb testAsserts.vb"