Skip to content

Commit

Permalink
Include IntegrationTestCase in SetupFixture class since Fixture depen…
Browse files Browse the repository at this point in the history
…ds on IntegrationTestCase, and check for specs in <plugindir>/tests in addition to <plugindir>/Test.
  • Loading branch information
diosmosis committed Jun 10, 2014
1 parent 346688d commit 3c4eaf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/CoreConsole/Commands/SetupFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ private function requireFixtureFiles()
require_once PIWIK_INCLUDE_PATH . '/tests/PHPUnit/TestingEnvironment.php';
require_once PIWIK_INCLUDE_PATH . '/tests/PHPUnit/IntegrationTestCase.php';
require_once PIWIK_INCLUDE_PATH . '/tests/PHPUnit/Fixture.php';
require_once PIWIK_INCLUDE_PATH . '/tests/PHPUnit/IntegrationTestCase.php';

$fixturesToLoad = array(
'/tests/PHPUnit/Fixtures/*.php',
Expand Down
3 changes: 2 additions & 1 deletion tests/lib/screenshot-testing/support/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Application.prototype.loadTestModules = function () {

plugins.forEach(function (pluginPath) {
walk(path.join(pluginPath, 'Test'), /_spec\.js$/, modulePaths);
walk(path.join(pluginPath, 'tests'), /_spec\.js$/, modulePaths);
});

modulePaths.forEach(function (path) {
Expand Down Expand Up @@ -206,7 +207,7 @@ Application.prototype.doRunTests = function () {
};

Application.prototype.finish = function () {
phantom.exit(this.runner.failures);
phantom.exit(this.runner ? this.runner.failures : -1);
};

exports.Application = new Application();

0 comments on commit 3c4eaf1

Please sign in to comment.