Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a71b043
feat: add tests for BrowserCommands in test_browser_commands.py
thalissonvs Nov 17, 2024
32a60f0
test: add unit tests for browser options functionality and validation
thalissonvs Nov 17, 2024
04c5028
test: add tests for handling invalid commands and callbacks
thalissonvs Nov 17, 2024
2907716
test: add unit tests for DOM command methods in DomCommands class
thalissonvs Nov 17, 2024
83f682d
test: add unit tests for FetchCommands functionality and responses
thalissonvs Nov 17, 2024
fc1ebf6
test: add unit tests for mouse and keyboard input commands
thalissonvs Nov 17, 2024
2db8d8d
test: add unit tests for network command functionalities
thalissonvs Nov 17, 2024
79fcbcb
test: add unit tests for PageCommands functionality and behavior
thalissonvs Nov 17, 2024
c706cc7
test: add tests for RuntimeCommands in test_runtime_commands.py
thalissonvs Nov 17, 2024
d960a93
test: add unit tests for storage command functionalities
thalissonvs Nov 17, 2024
3b275fc
test: add unit tests for TargetCommands functionality in PyDoll
thalissonvs Nov 17, 2024
133606d
test: add mock for RuntimeCommands to improve testing flexibility
thalissonvs Nov 17, 2024
7339775
fix: use deepcopy for templates to prevent mutation issues
thalissonvs Nov 17, 2024
4a772d8
fix: add connection port parameter to Chrome browser initialization
thalissonvs Nov 18, 2024
beaef17
Merge branch 'main' into feat/tests
thalissonvs Nov 23, 2024
2705e68
test: update expected callback IDs and change screenshot format to JPEG
thalissonvs Nov 23, 2024
e60f665
refactor: refactor DOM command scripts for clarity and efficiency
thalissonvs Nov 24, 2024
67cfa07
test: add non-JSON event sending and page handler for tests
thalissonvs Nov 24, 2024
0b7e18b
build: update poetry.lock to add aioresponses package version 0.7.7
thalissonvs Nov 24, 2024
f5cd96e
refactor: refactor Browser class to use manager classes for better st…
thalissonvs Feb 2, 2025
19831b5
refactor: implement proxy and browser management in the new managers …
thalissonvs Feb 2, 2025
db856f6
refactor: refactor Chrome class to use BrowserOptionsManager for path…
thalissonvs Feb 2, 2025
16ddc72
feat: add ping method to ConnectionHandler for browser connectivity c…
thalissonvs Feb 2, 2025
4ecc8a3
refactor: remove unnecessary logging for WebSocket address fetching
thalissonvs Feb 2, 2025
94be17b
test: add docstring for test_decode_image_to_bytes function
thalissonvs Feb 2, 2025
bb9915e
refactor: implement command and event management for asynchronous pro…
thalissonvs Feb 2, 2025
df3bee2
refactor: implement ConnectionHandler for WebSocket browser automation
thalissonvs Feb 2, 2025
d59007b
refactor: refactor import paths for ConnectionHandler in browser modules
thalissonvs Feb 2, 2025
8bec567
refactor: refactor import statement for ConnectionHandler module
thalissonvs Feb 2, 2025
8f8de32
refactor: refactor Browser initialization to enhance flexibility and …
thalissonvs Feb 2, 2025
2bc7009
refactor: refactor Browser class initialization for better clarity an…
thalissonvs Feb 5, 2025
e3a8107
refactor: refactor ConnectionHandler to improve WebSocket management …
thalissonvs Feb 5, 2025
189f854
test: refactor test fixtures for improved clarity and maintainability
thalissonvs Feb 5, 2025
5fec054
refactor: refactor proxy configuration and cleanup logic in Browser c…
thalissonvs Feb 5, 2025
6033ac5
test: add unit tests for Chrome browser functionality and management
thalissonvs Feb 5, 2025
b60e75d
test: add tests for browser event management and page validation logic
thalissonvs Feb 5, 2025
012bcf6
test: add unit tests for browser manager functionalities and options
thalissonvs Feb 5, 2025
5da0b80
chore: exclude test files from linting in Ruff configuration
thalissonvs Feb 5, 2025
81c463c
refactor: refactor methods to be static in ConnectionHandler class
thalissonvs Feb 5, 2025
21edd55
fix: add initial module files for commands, connection, events, and m…
thalissonvs Feb 5, 2025
de9dd28
feat: update changelog for version 0.7.0 and fix dependency versions
thalissonvs Feb 5, 2025
cfad1bc
refactor: add command imports and remove obsolete connection handler …
thalissonvs Feb 5, 2025
e715a2b
test: add initial tests for Page interactions and event handling
thalissonvs Feb 5, 2025
cf82717
test: add unit tests for event constants in test_events.py
thalissonvs Feb 5, 2025
6fd9333
test: update CSS locator references to use CSS_SELECTOR consistently
thalissonvs Feb 5, 2025
c6c21c5
test: refactor imports and clean up whitespace in test file
thalissonvs Feb 5, 2025
8eba70a
test: add pytest mocks for runtime commands in DOM tests
thalissonvs Feb 5, 2025
faf2423
test: refactor assertions for better readability in test_events.py
thalissonvs Feb 5, 2025
0d1d45e
test: remove obsolete conftest.py and add web element tests
thalissonvs Feb 5, 2025
e3c15e9
feat: refactor import and export statements for better readability
thalissonvs Feb 5, 2025
60872f5
ci: add GitHub Actions workflow for PyDoll tests suite
thalissonvs Feb 5, 2025
2b6888e
ci: update test command to use Poetry for dependency management
thalissonvs Feb 5, 2025
87332fb
ci: enhance test workflow to include coverage reporting and upload
thalissonvs Feb 5, 2025
1469cf4
ci: update Codecov action to version 5 and add token for upload
thalissonvs Feb 5, 2025
3c6a527
ci: add Codecov configuration for coverage status thresholds
thalissonvs Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PyDoll Tests Suite

on: push

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Run tests with coverage
run: |
poetry run pytest -s -x --cov=pydoll -vv --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: tests
name: PyDoll Tests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 7 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
status:
project:
default:
target: 90%
threshold: 0%
base: auto
17 changes: 16 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading