chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

How to run integration test for a chainlit app

Open tjroamer opened this issue 3 months ago • 0 comments

I'd like to run an integration test for my chainlit app with the pytest framework with the following requirements to make sure the app is not broken:

  • I want to define a test module, test_app in a tests folder
  • in the test module, I first start the chainlit app
  • I send a message to the app by calling a function
  • I got a response message from the app and verify the response
  • But I don't want to UI in the browser during the test, just want the app running in the background

Could anyone give me some ideas? Thanks in advance.

tjroamer avatar Apr 03 '24 20:04 tjroamer