Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test API integration #131

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Test API integration #131

wants to merge 2 commits into from

Conversation

m-dango
Copy link

@m-dango m-dango commented May 30, 2024

Closes #21

Kind of winging it with these changes but wanted to get the ball rolling on introducing this feature. Bare minimum functionality should be present with this.

@m-dango
Copy link
Author

m-dango commented Jun 2, 2024

screenshot

More to do, and definitely some refactoring needed, but moving towards something functionally viable.

run.started(fileItem);
// Extract via Test2::API to JSON
const execPromise = new Promise((resolve, reject) => {
child_process.exec(`perl -e '
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to update this to use settings.perlPath instead of "perl" somehow.

This is the way I call external perl scripts in the server side:

const process = async_execFile(settings.perlPath, settings.perlParams.concat(tidyParams), { timeout: 25000, maxBuffer: 20 * 1024 * 1024 }); 

@m-dango
Copy link
Author

m-dango commented Jun 3, 2024

Thanks for the feedback, I'll spend some more time working on this when I can. This month is looking fairly busy for me, and I still have a talk that needs writing for TPRC!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Support for the Testing API
2 participants