Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Recursive test. Fix #2644 #2712

Merged
merged 3 commits into from Jan 3, 2020

Conversation

robertmagier
Copy link
Contributor

I created new test file truffle/packages/core/test/lib/commands/test.js and added two tests. One is pretty simple. I just create three different files in two subdirectories and check if output from determineTestFilesToRun function from @truffle/core/lib/commands/test/helpers.js is showing three files more.

Second test might be an overkill. It allows to create more customized tree structure according to provided object. Counts number of new files and then call determineTestFilesToRun function to check if all new test files were included in test set. I may remove it if you think it is too much.

Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for this!

@gnidan gnidan merged commit ff10201 into trufflesuite:develop Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants