我想用KarmaJS(0.9.2)运行我的Jasmine e2e测试.我在Windows 7上使用带有AngularJS(1.0.7)的Google Closure.当我开始使用karma start config\karma-e2e.js一切正常工作时(浏览器导航到正确的页面)但它不执行我的测试(停止在'浏览器导航到').
该config\karma-e2e.js文件中:
basePath = '../';
frameworks = ['ng-scenario'];
files = [
'tests/e2e/**/*.js'
];
autoWatch = true;
singleRun = false;
browsers = ['Chrome'];
urlRoot = '/__karma/';
proxies = {
'/': 'http://localhost:8080/'
}
plugins = [
'karma-ng-scenario'
'karma-chrome-launcher'
]
Run Code Online (Sandbox Code Playgroud)
测试源(tests\e2e\scenarios.coffee)是:
describe 'Intro page view', ->
it 'has hello world message', ->
browser().navigateTo '/app/client/'
expect(element('#text').text()).toBe 'Hello World'
Run Code Online (Sandbox Code Playgroud)
我正在使用html5Mode路由,angular使用bootstraped angular.bootstrap,所有我的咖啡脚本都是由IDE编译的,我在浏览器控制台或命令行中看不到任何错误.那我该怎么办呢?难道我做错了什么?
谢谢!
我的Linux Debian服务器上的Apache2出了问题.当我尝试创建.htaccess文件时,它不会出现.在apache2.conf中我有.htaaccess配置.
.htaccess ×1
angularjs ×1
apache2 ×1
debian ×1
end-to-end ×1
karma-runner ×1
linux ×1
testing ×1