Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Running codeceptJS tests using child_process.Exec #3278

Unanswered
JaredM2000 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /