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

Running Tests #7

Open
xfq opened this issue Aug 16, 2022 · 1 comment
Open

Running Tests #7

xfq opened this issue Aug 16, 2022 · 1 comment

Comments

@xfq
Copy link
Member

xfq commented Aug 16, 2022

It would be useful to add some instructions on how to run the tests (like this). I know that the instructions are different for different MiniApp platforms, and most (if not all) platforms won't pass the tests currently, but I still feel it's useful.

@espinr
Copy link
Collaborator

espinr commented Aug 16, 2022

I agree @xfq. So far, we don't have automatic mechanisms to run the tests, only to document them.
In Contributing, I've specified how to create new tests and reports, but not how to test explicitly.

My initial approach is that every unit test (one MiniApp per test) must be loaded and tested on every MiniApp user agent by hand, using their specific loading mechanisms. Since they depend on different platforms and super-apps, the way to load them may vary.

[Edit] -> the summary of the testing process:

  1. Every miniapp vendor must use the MiniApps generated and documented in the repository (.ma zipped files),
  2. Load each of them in their super-app, or OS through the specific MiniApp loader (I suppose they are different)
  3. Observe the result (i.e., is the system asking for the location permission?)
  4. Annotate it in the reporting document (i.e., pass, fail, N/A).

Of course, ideally, we should automatize the process, like the WPT, but I think with the current (slower) approach we can start right now. During the WG meeting on May 26, Zhou Dan mentioned two interesting frameworks (Weixin's and SmartApp-CTS) as an approach to check MiniApps, but I understand that this common tool for testing would be a kind of validator (that would be really useful).

Please, miniapp vendors, share your thoughts. I'm happy to adapt the methodology and scripts based on your suggestions.

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

2 participants