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

Run tests by invoking the migrator as a subprocess #30

Merged
merged 2 commits into from Apr 19, 2019
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Apr 18, 2019

This will make it easier to test a Node.js executable, and avoids
needing a bunch of dependency injection.

This will make it easier to test a Node.js executable, and avoids
needing a bunch of dependency injection.
@nex3 nex3 requested a review from jathak April 18, 2019 08:22
await process.shouldExit(0);

await Future.wait(files.output.keys
.map((path) => d.file(path, files.output[path]).validate()));
Copy link
Member

Choose a reason for hiding this comment

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

We should also test any input files that aren't in the output to confirm that they are unchanged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Done.

@nex3 nex3 merged commit 5028877 into master Apr 19, 2019
@nex3 nex3 deleted the test-process branch April 19, 2019 00:39
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.

None yet

2 participants