HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

Fix for report generation when specific (not all) test files are run #29

Closed pixelheresy closed 9 years ago

pixelheresy commented 9 years ago

Currently, whenever phantomFlow is run, the results directory is removed. However, this is problematic if instead of running all tests, the user runs a specific test/tests via filterTests variable. In this case, the current report is only generated from the data relating to these tests.

Instead, the visual results/data should be maintained for non-run tests, so that they are included in the newest report. Made adjustments to main script to check if there are filterTests and if so, purge the dataPath, debugPath, and visualResultsPath pertinent only to the test selected.

jamescryer commented 9 years ago

Makes sense. Thanks.

pixelheresy commented 9 years ago

Thank you!