Running codeceptJS tests using child_process.Exec #3278
Unanswered
JaredM2000
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create an express app that runs codeceptJS tests after an HTTP request is sent, and then send the results back as a response. I've tried multiple methods of waiting for the Exec() to finish, but nothing has worked so far. The best I could do was a Try/Catch block using ExecSync, this only worked because for some reason the ExecSync would error when codecepts finished allowing me something to hook onto as a signifier of it being done.
Though my end goal was to implement periodic updates to the client with info about how far along the tests are going. I've created a socket with success for this, but I need the Exec to now run async or else the Express app is locked down and can't receive the socket emits. Really want to know if there is anyway to get this working asynchronously.
Beta Was this translation helpful? Give feedback.
All reactions