Skip to content

Commit

Permalink
Move unit tests outside of Dialogic.
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeVR committed Jan 18, 2024
1 parent 7a43111 commit b700976
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
shell: bash
run: |
chmod +x ./addons/gdUnit4/runtest.sh
xvfb-run --auto-servernum ./addons/gdUnit4/runtest.sh --add "res://addons/dialogic/Tests/" --audio-driver Dummy --display-driver x11 --rendering-driver opengl3 --screen 0 --continue
xvfb-run --auto-servernum ./addons/gdUnit4/runtest.sh --add "res://Tests/" --audio-driver Dummy --display-driver x11 --rendering-driver opengl3 --screen 0 --continue
- name: "Upload Unit Test Reports"
if: ${{ always() }}
Expand Down
9 changes: 9 additions & 0 deletions Tests/Unit/test_example.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class_name GdUnitExampleTest
extends GdUnitTestSuite

func test_example() -> void:
const EXAMPLE_STRING := "Dialogic!"

assert_str(EXAMPLE_STRING)\
.has_length(EXAMPLE_STRING.length())\
.starts_with("Dia")

0 comments on commit b700976

Please sign in to comment.