question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyodide-test-runner naming

See original GitHub issue

Currently, we have the pyodide-test-runner package which exposes both the tools to run Pyodide in Node and browsers from host Python and pytest fixtures. Other relevant use case is running Pyodide from Python are,

  • sandboxed code execution
  • CLI applications using Pyodide, possibly related to what Hood is experimenting with

we essentially already have the code to make it possible and I wonder if it would be better to have, a) a pyodide-test-runner package (current situation) and tell people to either use this or create their own if they want to run in WASM from Python b) have a separate - pyodide-runner package to run code in Pyodide from Python + possible some CLI related tools - pytest-pyodide package (following the convention for pytest plugins) with the pytest related hooks and fixtures (which would depend on pyodide-runner)

No strong opinion. WDYT @hoodmane @ryanking13 ?

In any case, we should decide this before we upload the package to PyPi https://github.com/pyodide/pyodide/issues/2741

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rthcommented, Jul 17, 2022

I’ll let you push the current contents

Actually, since I have time to work on this now, I can do it and put you as the commit author.

0reactions
ryanking13commented, Jul 19, 2022

Thanks for working on that! I think the top priority is to take off initialize_global_hiwire_objects from the test package so that we can update Pyodide API without modifying the pytest-pyodide.

Opened a PR about this #2889

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyodide/testing.md at main - GitHub
Pyodide is a Python distribution for the browser and Node.js based on WebAssembly - pyodide/testing.md at main · pyodide/pyodide.
Read more >
Pyodide - Release 0.22.0a3 unknown
follow PEP 427 naming convention, which will be the case if the wheels is made using standard Python tools (pip.
Read more >
cra-template-pyodide-test - npm
Template to use Create React App with Pyodide. Latest version: 0.3.0, last published: 2 years ago. Start using cra-template-pyodide-test in your project by ......
Read more >
VUnit/vunit - Gitter
When the test_runner_cleanup procedure is called VUnit will enter a phase with the same name. Once cleanup has completed VUnit will goto the ......
Read more >
Plugin List — pytest documentation
name summary last release status requi... pytest‑accept A pytest‑plugin for updating doctest outputs Jan 07, 2022 N/A pytes... pytest‑addons‑test 用于测试pytest的插件 Aug 02, 2021 N/A pytes... pytest‑aio...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found