File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Magento/FunctionalTestingFramework/Console Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \FunctionalTestingFramework \Console ;
9
9
10
+ use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
10
11
use Symfony \Component \Console \Command \Command ;
11
12
use Symfony \Component \Console \Input \InputArgument ;
12
13
use Symfony \Component \Console \Input \InputInterface ;
@@ -47,11 +48,18 @@ protected function configure()
47
48
*
48
49
* @param InputInterface $input
49
50
* @param OutputInterface $output
51
+ * @throws TestFrameworkException
50
52
* @return integer
51
53
*/
52
54
protected function execute (InputInterface $ input , OutputInterface $ output ): int
53
55
{
54
- $ manifestFile = file ($ input ->getArgument ("path " ), FILE_IGNORE_NEW_LINES );
56
+ $ path = $ input ->getArgument ("path " );
57
+
58
+ if (!file_exists ($ path )) {
59
+ throw new TestFrameworkException ("Could not find file $ path. Check the path and try again. " );
60
+ }
61
+
62
+ $ manifestFile = file ($ path , FILE_IGNORE_NEW_LINES );
55
63
56
64
// Delete the Codeception failed file just in case it exists from any previous test runs
57
65
$ this ->deleteFailedFile ();
You can’t perform that action at this time.
0 commit comments