openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

Proposal: add API based end-to-end (aka e2e) testing

Open LinuxSuRen opened this issue 1 year ago • 2 comments

Describe the feature

I'm the author of api-testing which is an API testing tool. It seems that no e2e testing in this project. I'd be happy to implement it if you believe it's worth.

In order to let you have a quick kowning about it. Please see also the user's of api-testing.

LinuxSuRen avatar Jun 24 '24 01:06 LinuxSuRen

Hi @LinuxSuRen, how does api-testing work? Does it integrate with openapi specs?

amvanbaren avatar Jun 24 '24 19:06 amvanbaren

This is an example https://github.com/apache/hertzbeat/tree/master/e2e. It's pretty simple, see the basic steps:

  • write the test cases in YAML format manually
  • start the server via docker-compose or other ways
  • run the test cases via the command atest
  • stop the CI when the testing is failed

It supports a variety of validations to check if the HTTP API response is ok.

LinuxSuRen avatar Jun 25 '24 00:06 LinuxSuRen