{"repo":"pyodide/pytest-pyodide","free":true,"listed":false,"github":"https://github.com/pyodide/pytest-pyodide","clone":"git clone https://github.com/pyodide/pytest-pyodide.git","description":"Pytest plugin for testing applications that use Pyodide","language":"Python","stars":38,"topics":["pyodide","pytest","pytest-plugin","selenium"],"license":"MPL-2.0","category":"scrapers-browser-automation","readme_excerpt":"pytest-pyodide Pytest plugin for testing applications that use Pyodide Installation pytest-pyodide requires Python 3.10+ and can be installed with You would also need one at least one of the following runtimes: - Chrome and chromedriver - Firefox and geckodriver - Safari and safaridriver - node v18+ Github Reusable workflow pytest-pyodide also supports testing on GitHub Action by means of a reusable workflow in /.github/workflows/main.yaml This allows you to test on a range of browser/OS combinations without having to install all the testing stuff, and integrate it easily into your CI process. In your github actions workflow, call it with as a separate job. To pass in your built wheel, use an upload-artifact step in your build step. This will run your tests on the given browser/Pyodide version/OS configuration. It runs pytest in the root of your repo, which should catch any test \\ .py files in subfolders. [!NOTE] The following workflow might be out of date. Please refer to the latest version from the Pyodide documentation. If you want to run on multiple browsers / pyodide versions etc., you can either use a matrix strategy and run main.yaml as above, or you can use testall.yaml. This by default tests on all browsers (and node) with multiple configurations. If you want to reduce the configurations you can filter with lists of browsers, runners, pyodide-versions as shown below. Usage 1. First you need a compatible version of Pyodide. You can download the Pyodide build artifacts","default_branch":null,"files":null,"tree":[],"storefront":"/r/pyodide","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pyodide/pytest-pyodide/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}