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

Resolve the new file contents from the runner #59

Open
elicwhite opened this issue Oct 21, 2015 · 2 comments
Open

Resolve the new file contents from the runner #59

elicwhite opened this issue Oct 21, 2015 · 2 comments

Comments

@elicwhite
Copy link
Member

I'm writing tests for my codemod and want to use the runner programmatically instead of shelling out. I have two fixture files, a before and an after. I want to dry-run the before file, get the output and compare it to my after file.

However, when running the runner programmatically with dry run, I don't believe there is any way to receive the new file. The runner should probably resolve an object that contains information about how long it took to run and the new content.

@elicwhite elicwhite mentioned this issue Oct 21, 2015
@cpojer
Copy link
Contributor

cpojer commented Oct 21, 2015

@elicwhite
Copy link
Member Author

Thanks for the quick response! That worked for me.

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

No branches or pull requests

3 participants