Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python testsuite #581

Merged
merged 24 commits into from
Feb 2, 2025
Merged

Add python testsuite #581

merged 24 commits into from
Feb 2, 2025

Conversation

lazysegtree
Copy link
Collaborator

Added a testsuite to test file operations. Uses tmux in MacOS and Linux, and pyautogui in windows.
Added Copy/Cut/Rename/Delete/CopyDir tests so far.

Test run

Linux

[opc@test-client-hyd-1 testsuite]$ .venv/bin/python main.py
[2025-02-01 09:17:11 -    INFO] Testcases : [CopyDirTest, CopyTest, CutTest, DeleteTest, RenameTest]
[2025-02-01 09:17:11 -    INFO] Running test CopyDirTest
[2025-02-01 09:17:12 -    INFO] Passed test CopyDirTest
[2025-02-01 09:17:12 -    INFO] Running test CopyTest
[2025-02-01 09:17:14 -    INFO] Passed test CopyTest
[2025-02-01 09:17:14 -    INFO] Running test CutTest
[2025-02-01 09:17:16 -    INFO] Passed test CutTest
[2025-02-01 09:17:16 -    INFO] Running test DeleteTest
[2025-02-01 09:17:17 -    INFO] Passed test DeleteTest
[2025-02-01 09:17:17 -    INFO] Running test RenameTest
[2025-02-01 09:17:19 -    INFO] Passed test RenameTest
[2025-02-01 09:17:19 -    INFO] Finished running 5 test. 5 passed
[opc@test-client-hyd-1 testsuite]$

MacOS (Delete is failing in my mac due to some issues)

➜  ~/Workspace/kuknitin/superfile/testsuite git:(testsuite) [7:53:24] .venv/bin/python3 main.py -t CopyTest RenameTest CopyDirTest CutTest
[2025-02-01 19:53:35 -    INFO] Testcases : [CopyDirTest, CutTest, CopyTest, RenameTest]
[2025-02-01 19:53:35 -    INFO] Running test CopyDirTest
[2025-02-01 19:53:37 -    INFO] Passed test CopyDirTest
[2025-02-01 19:53:37 -    INFO] Running test CutTest
[2025-02-01 19:53:38 -    INFO] Passed test CutTest
[2025-02-01 19:53:38 -    INFO] Running test CopyTest
[2025-02-01 19:53:40 -    INFO] Passed test CopyTest
[2025-02-01 19:53:40 -    INFO] Running test RenameTest
[2025-02-01 19:53:42 -    INFO] Passed test RenameTest
[2025-02-01 19:53:42 -    INFO] Finished running 4 test. 4 passed
➜  ~/Workspace/kuknitin/superfile/testsuite git:(testsuite) [7:53:42]

Windows - delete is broken in windows

PS C:\Users\nitin\Documents\Programming\superfile\testsuite> .venv\Scripts\python main.py --close-wait-time 2 -t CopyTest RenameTest CopyDirTest CutTest
[2025-02-01 19:57:04 -    INFO] Testcases : [CopyDirTest, CopyTest, CutTest, RenameTest]
[2025-02-01 19:57:04 -    INFO] Running test CopyDirTest
[2025-02-01 19:57:07 -    INFO] Passed test CopyDirTest
[2025-02-01 19:57:07 -    INFO] Running test CopyTest
[2025-02-01 19:57:11 -    INFO] Passed test CopyTest
[2025-02-01 19:57:11 -    INFO] Running test CutTest
[2025-02-01 19:57:15 -    INFO] Passed test CutTest
[2025-02-01 19:57:15 -    INFO] Running test RenameTest
[2025-02-01 19:57:18 -    INFO] Passed test RenameTest
[2025-02-01 19:57:18 -    INFO] Finished running 4 test. 4 passed
PS C:\Users\nitin\Documents\Programming\superfile\testsuite> ^C
PS C:\Users\nitin\Documents\Programming\superfile\testsuite>

Copy link

netlify bot commented Feb 1, 2025

Deploy Preview for superfile canceled.

Name Link
🔨 Latest commit 6d5ff92
🔍 Latest deploy log https://app.netlify.com/sites/superfile/deploys/679e31b486331200085856c1

@lazysegtree lazysegtree marked this pull request as ready for review February 1, 2025 14:31
@lazysegtree lazysegtree requested a review from yorukot February 1, 2025 14:31
@yorukot yorukot merged commit 217956e into main Feb 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants