Skip to content

Commit

Permalink
Run test with tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoySegall committed Apr 16, 2015
1 parent 145eb93 commit 5c7076b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/BehatTestsAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public function executeScenario($scenario, $component, $type = 'module') {
$scenarios = $parser->parse($test)->getScenarios();

foreach ($scenarios as $scenario) {

if ($this->getTag() && !in_array($this->getTag(), $scenario->getTags())) {
// Run tests with specific tags.
continue;
Expand Down Expand Up @@ -211,4 +210,4 @@ public function sendForm($element) {
$this->submitForm($this->edit, $element);
}

}
}
2 changes: 1 addition & 1 deletion src/Tests/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testLogin() {
}

public function testLoginFailed() {
$this->setTag('@login-failed')->executeScenario('login', 'behat');
$this->setTag('login-failed')->executeScenario('login', 'behat');
}

}

0 comments on commit 5c7076b

Please sign in to comment.