From cc83d1d4b787b00aae7f62766fa781a25e8f3f4d Mon Sep 17 00:00:00 2001 From: Andrew Yang Date: Wed, 23 Oct 2024 12:31:32 +1100 Subject: [PATCH] chore: add test file --- .github/workflows/ui-tests.yml | 5 +---- sample/Tests/test.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 sample/Tests/test.py diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 33b16df1..965be880 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -39,7 +39,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: Build-StandaloneOSX - path: sample/** + path: sample/Builds/MacOS test: name: Run UI tests on AltTester 🧪 runs-on: macos-latest @@ -52,7 +52,6 @@ jobs: with: name: Build-StandaloneOSX - name: Open application - working-directory: Builds/MacOS run: | pwd ls -la @@ -68,8 +67,6 @@ jobs: run: pip install -r "sample/Tests/requirements.txt" - name: Run UI tests run: | - pwd - ls -la export ALTSERVER_PORT=13000 export ALTSERVER_HOST="159.196.149.251" pytest -s -v sample/Tests/test.py diff --git a/sample/Tests/test.py b/sample/Tests/test.py new file mode 100644 index 00000000..1fecda73 --- /dev/null +++ b/sample/Tests/test.py @@ -0,0 +1,17 @@ +import unittest +from alttester import * + +class UnityTest(unittest.TestCase): + +# altdriver = None +# +# @classmethod +# def setUpClass(cls): +# cls.altdriver = AltDriver() +# +# @classmethod +# def tearDownClass(cls): +# cls.altdriver.stop() + + def test(self): + assert True \ No newline at end of file