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

wasm-pack test broken #5797

Open
codewiz opened this issue Jun 11, 2024 · 3 comments
Open

wasm-pack test broken #5797

codewiz opened this issue Jun 11, 2024 · 3 comments

Comments

@codewiz
Copy link

codewiz commented Jun 11, 2024

Description

The recommended command-line to run tests with WebGL fails to parse the top-level Cargo.toml file:

~/src/wgpu% wasm-pack test --headless --chrome --no-default-features --features webgl --workspace
Error: failed to parse manifest: /home/bernie/src/wgpu/Cargo.toml
Caused by: failed to parse manifest: /home/bernie/src/wgpu/Cargo.toml
Caused by: TOML parse error at line 1, column 1
 1 | [workspace]
   | ^ missing field `package`

Platform

  • webgpu trunk as of Jun 11 2024
  • wasm-pack 0.12.1
  • cargo 1.76.0 (c84b36747 2024-01-18)
@cwfitzgerald
Copy link
Member

You need cd into any crate first. wasm-pack test can't deal with a virtual workspace.

@cwfitzgerald
Copy link
Member

We should better document this.

@kpreid
Copy link
Contributor

kpreid commented Jun 12, 2024

You need cd into any crate first.

Tiny nitpick: cd isn't strictly necessary; you can also do wasm-pack test <flags> some-package-directory/.

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

No branches or pull requests

3 participants