RedemptionC commented on pull request #2065:
URL: https://github.com/apache/apisix-dashboard/pull/2065#issuecomment-902647193


   @nic-chen 
   how to set up the init state of testing environment?
   when I'm testing this API in e2e testing,I created 3 items,I wanted to 
assert the total number of items is 3,but actually the error log in github 
actions show that there are 5
   ```
   Cache verify [It] cache verify  
   
/home/runner/work/apisix-dashboard/apisix-dashboard/api/test/e2enew/cache_verify/cache_verify_test.go:31
   
     Expected
         <int64>: 5
     to equal
         <int64>: 3
   ```
   I'm confused.What should I test in e2e tesing? It seems that  unit testing 
using mock works best in this case,while it's hard to test the API's 
functionality using e2e testing
   what do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to