For lemmy server testing and performance baseline measurement, I think it would be cool to have every API call exercised.

Anyone willing to create and share some JavaScript client code? Normally these are run with Jest via NodeJS - but we can make it an extra step to integrate into Jest. I’m just thinking someone doing front-end app work can do a well organized hit on every API surface.

You can skip the creation of a user if you want, that code is already in the testing

Probably ideal to organize moderator vs non-moderator.

Something like: edit profile with every option one at a time, create a community, edit it, create posts, edit, delete, undelete, reply, etc. Imagine you were doing interactive tests of a major upgrade and wanted to hit every feature and button.

Right now most of that testing is done in independent scripts, such as a user test: https://github.com/LemmyNet/lemmy/blob/main/api_tests/src/user.spec.ts

And you can see it only tests editing a profile is working, not that actual features change their behavior. Although I’ve started to add that for back-end behaviors like showing read/unread posts on the list. Front-end devs are the ones who know what end-users do and the fringe cases to look out for. Thank you.

3 points

I’m writing a frontend in flask right now and something like this would be a godsend. Trying to dig not just the endpoints out of the lemmy/lemmy-ui/lemmy-js-client but also figuring out responses forenough variations has been like pulling teeth. Only thing more helpful would be an openapi spec.

permalink
report
reply

Lemmy App Development

!lemmydev@lemm.ee

Create post

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

  • programming questions related to the Lemmy platform
  • sharing your ideas, WIP, or released Lemmy-related work

Off-Topic:

  • general programming questions unrelated to Lemmy
  • feature requests for developers
  • sharing or promoting work not related to Lemmy

Community stats

  • 18

    Monthly active users

  • 63

    Posts

  • 223

    Comments

Community moderators