Skip to content

Commit a36ba98

Browse files
authored
Update lint_vba.yml (#22)
* Update lint_vba.yml * Reformatted example and fixed a naming error (#24) * Fixed misnamed initialization * changed function call to sub call * added file headers
1 parent 4e03586 commit a36ba98

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.github/workflows/lint_vba.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
- name: Precompile
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install 'vba_precompiler @ git+https://github.com/Beakerboy/VBA-Precompiler'
19+
python -m vba_precompiler ./src
20+
rm -rf ./src
1521
- name: Lint
16-
uses: Vba-actions/lint-vba@main
22+
uses: Vba-actions/lint-vba@dev

examples/ClassModules/TestCaseStub.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ End Sub
4545
' Sub: MyFirstTest
4646
' All test subs should end with "Test" and include at least one assertion.
4747
Sub MyFirstTest()
48-
AssertTrue(2 = 1 + 1, "AssertTrue that one plus one equals two")
49-
AssertEquals(1 + 1, 2, "AssertEquals that one plus one equals two")
48+
AssertTrue 2 = 1 + 1, "AssertTrue that one plus one equals two"
49+
AssertEquals 1 + 1, 2, "AssertEquals that one plus one equals two"
5050
End Sub

examples/Modules/ProjectUnitTests.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Attribute VB_Name = "ProjectUnitTests"
12
Public Function RunTests()
23

34
Dim TestConfig As iTestableProject

testing/ClassModules/PostLogTests.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ End Function
3434
' Function: iTestCase_GetObject
3535
' Returns this object
3636
Function iTestCase_GetObject()
37-
Set iTestCase_GetObject = New PostLogChecks
37+
Set iTestCase_GetObject = New PostLogTests
3838
End Function
3939

4040
' Function: ErrorLoggedTest

testing/Modules/VBAUnitTesterUnitTests.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Attribute VB_Name = "VBAUnitTesterUnitTests"
12
Public Function RunTests()
23

34
Dim TestConfig As iTestableProject

0 commit comments

Comments
 (0)