Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Test Configuration Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankDeGroot committed Jan 2, 2013
1 parent e184eae commit ca3bba6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/js/ctrl/nav.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function NavCtrl($scope, $location) {
'use strict';

function NavCtrl($scope, $location) {
$scope.isUrl = function (path, className) {
if ($location.path() == path) {
return className;
Expand Down
1 change: 1 addition & 0 deletions config/testacular-e2e.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ files = [

autoWatch = false;

//browsers = ['PhantomJS'];
browsers = ['Chrome'];

singleRun = true;
Expand Down
1 change: 1 addition & 0 deletions config/testacular.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ files = [

autoWatch = true;

//browsers = ['PhantomJS'];
browsers = ['Chrome'];

junitReporter = {
Expand Down
4 changes: 3 additions & 1 deletion scripts/e2e-test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ REM - NodeJS (http://nodejs.org/)
REM - Testacular (npm install -g testacular)

set BASE_DIR=%~dp0
testacular start "%BASE_DIR%\..\config\testacular-e2e.conf.js" %*
set PHANTOMJS_BIN=%APPDATA%\npm\node_modules\phantomjs\lib\phantom\phantomjs.exe
set CHROME_BIN=%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe
start testacular start "%BASE_DIR%\..\config\testacular-e2e.conf.js" %*
4 changes: 3 additions & 1 deletion scripts/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ REM - NodeJS (http://nodejs.org/)
REM - Testacular (npm install -g testacular)

set BASE_DIR=%~dp0
testacular start "%BASE_DIR%\..\config\testacular.conf.js" %*
set PHANTOMJS_BIN=%APPDATA%\npm\node_modules\phantomjs\lib\phantom\phantomjs.exe
set CHROME_BIN=%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe
start testacular start "%BASE_DIR%\..\config\testacular.conf.js" %*
2 changes: 1 addition & 1 deletion srv/srv.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = require('./app'),
api = require('./api'),
ip = process.env.IP || '127.0.0.1',
port = process.env.PORT || 3000;
port = process.env.PORT || 8000;

api(app, function () {
app.listen(port, function () {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/scenarios.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe('my app', function() {

beforeEach(function() {
browser().navigateTo('../../app/index.html');
browser().navigateTo('/');
});


Expand Down
2 changes: 2 additions & 0 deletions test/unit/ctrl/navSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';

0 comments on commit ca3bba6

Please sign in to comment.