forked from LambdaTest/python-selenium-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1003 Bytes
/
main.yml
File metadata and controls
41 lines (34 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# yaml/autosplit_linux.yaml
version: "0.1"
runson: linux
# Environment variables
env:
PYTHON_VERSION: "3.9"
# Any other env vars your tests need (e.g., LT credentials, browser, etc.)
# Dependency installation
pre:
- pip install -r requirements.txt # Install Python dependencies
# Test discovery: find all test files matching the pattern
testDiscovery:
type: automatic
mode: dynamic
command: find tests -name "test_*.py" # Adjust path to your test folder
type: regex
flags: []
# Test suite configuration
testSuite:
- name: "Python Selenium Tests"
parallel: true
execution: autosplit # Let HyperExecute split tests across runners
classes:
- ${location} # Each discovered test file
# Autosplit configuration
autosplit:
concurrency: 4 # Number of parallel sessions
# Post-test commands (e.g., generating reports)
post:
- echo "Tests completed"
# Reporting (optional, but recommended)
report: true
reportTitles:
- "Python Selenium Test Report"