- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试运行我的 karma (version v0.10.2)
对 teamcity (version 7.1).
进行单元测试
当我运行 karma start --reporters teamcity --single-run
我收到以下错误:
Can not load "teamcity", it is not registered! Perhaps you are missing some plugin?
karma
karma-chrome-launcher
karma-coffee-preprocessor
karma-coverage
karma-firefox-launcher
karma-html2js-preprocessor
karma-jasmine
karma-phantomjs-launcher
karma-requirejs
karma-script-launcher
karma-teamcity-reporter
I'm running karma version v0.10.2. Here's my karma.conf.js:
module.exports = function(karma) {
karma.set({
// base path, that will be used to resolve files and exclude
basePath: '../../myapplication.web',
frameworks: ['jasmine'],
plugins: [
'karma-jasmine',
'karma-coverage',
'karma-chrome-launcher',
'karma-phantomjs-launcher'
],
// list of files / patterns to load in the browser
files: [
'Scripts/jquery/jquery-2.0.2.min.js',
'Scripts/jquery-ui/jquery-ui-1.10.3.min.js',
'Scripts/daterangepicker/daterangepicker.js',
'Scripts/angular/angular.js',
'Scripts/angular/restangular/underscore-min.js',
'Scripts/angular/restangular/restangular-min.js',
'Scripts/angular/angular-*.js',
'Scripts/angular/angular-test/angular-*.js',
'Scripts/angular/angular-ui/*.js',
'Scripts/angular/angular-strap/*.js',
'Scripts/angular/angular-http-auth/*.js',
'Scripts/sinon/*.js',
'Scripts/moment/moment.min.js',
'uifw/scripts/ui-framework-angular.js',
'app/app.js',
'app/**/*.js',
'Tests/unit/**/*.js'
],
// list of files to exclude
exclude: [
'Scripts/angular/angular-test/angular-scenario.js'
],
// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters: ['progress', 'coverage', 'teamcity'],
preprocessors : {
'app/**/*.js': ['coverage']
},
coverageReporter : {
type: 'html',
dir: 'Tests/coverage/'
},
// web server port
port : 9876,
// cli runner port
runnerPort : 9100,
// enable / disable colors in the output (reporters and logs)
colors : true,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel : karma.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch : true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],
// If browser does not capture in given timeout [ms], kill it
captureTimeout : 60000,
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun : true
});
};
karma start karma.conf.js
它运行正确。我究竟做错了什么?
最佳答案
原来我需要添加karma-teamcity-reporter
到plugins
部分让它工作:
...
plugins: [
'karma-teamcity-reporter',
'karma-jasmine',
'karma-coverage',
'karma-chrome-launcher',
'karma-phantomjs-launcher'
],
...
关于teamcity - 无法加载 "teamcity",未注册!也许您缺少一些插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19514395/
使用 TeamCity,我在一个项目中设置了多个构建。大多数时候我想将每个构建作为独立运行。但是,有时我想使用相同的参数集执行多个构建。这些构建都使用相同的模板,因此理论上,它们的所有参数都可以由单个
我希望能够将最后一个固定的内部版本号传递给我的 TeamCity 构建步骤。我没有看到可以传入的系统参数,就像我对当前内部版本号所做的那样。 有没有我没有看到的参数?或者有没有办法从 URL 获取版本
我真的无法理解 teamcity (7.1) 中快照依赖的概念。 我们有一个构建项目,它根据构建参数(数据库名称和文件)相应地部署数据库,我有一个构建项目,用于构建和部署我们的 Web 应用程序。 我
我无法从远程计算机浏览到我的团队城市 (JetBrains)。我已按照安装说明进行操作,并且安装进行得很顺利。我可以在服务器上本地浏览 to 应用程序,完全没问题。我将配置文件中的默认服务器 url
我正在尝试重置密码。我正在关注 instructions here .我试过关闭两个服务(TeamCity Build Agent Service 和 TeamCity Web Server)或两者的
我的构建有 10 个步骤。 构建经常在第 10 步失败,尝试将 rpm 部署到神器。 下次构建再次从 1 开始,我可以将构建配置为仅在该步骤失败时从 10step 开始吗? 谢谢 最佳答案 没有内置方
我的构建有 10 个步骤。 构建经常在第 10 步失败,尝试将 rpm 部署到神器。 下次构建再次从 1 开始,我可以将构建配置为仅在该步骤失败时从 10step 开始吗? 谢谢 最佳答案 没有内置方
我正在 TeamCity 中构建 nuget,并且希望在 checkin 触发构建时将后缀“-pre”附加到版本号。当手动触发构建时,我希望能够提供一个复选框,以确定此构建应该是预览版本还是适合生产。
我们在 TeamCity 中的一些构建是灰色的,就像它们被禁用一样。 原因通常并不明显。当我检查有关构建的详细信息时,我没有发现任何值得注意的地方。 这个颜色到底代表什么? 另外:如果像上图一样,在变
在我的组装版本中,我想设置前 3 位数字,第四位数字应通过 Teamcity 设置。 例子: 我在我的 Assambly 中设置了 2.0.1.0。 那么我的 Teamcity 应该这样做: 2.0.
我正在为我们的团队城市构建服务器设置安全性。我希望所有用户都能够查看所有构建,其中一些构建会生成包含敏感数据(连接字符串等)的工件。是否可以阻止特定角色查看构建工件? 最佳答案 可能有点变通,但如果您
在 TeamCity 8.1 中,我刚刚下载了我的源代码,我要做的第一件事是从我刚刚检索的内容中删除一堆子文件夹。 我不能在“结帐规则”中使用排除项,所以我想我需要一个单独的步骤来在检索源代码后立即运
TeamCity 作业当前失败,因为磁盘空间不足。通过 Administration => Disk usage,我发现构建日志数量过多: 我曾尝试通过 TeamCity UI 清理构建历史,删除最近
我正在开发 Team-city 9.x。我在其中一个发布项目中遇到了一些构建失败。虽然我们已经禁用了构建并且我们不想运行构建。 我正在尝试将构建移动到另一个项目(禁用构建),但我无法移动构建。 因为我
我正在尝试用新构建中的新标签替换添加到构建中的标签。 我可以使用以下命令创建标签: curl -v -H "Content-Type:text/plain" -d "latest" https:///
我的 TeamCity 服务器中有很多项目,用于构建和测试多个站点。我们每晚都使用 Selenium RC 来测试站点,我想重用一个步骤或配置,而不是在每个项目中都有副本。 我已经研究过使用模板,但它
我正在设置合适的 CI 环境,目前正在评估 TeamCity。 (所以我的 TeamCity 经验是不存在的。)。 我已经在干净的 Windows XP(目前)VM 中执行了 TeamCity 5.0
我已经建立了顶级项目一个 在 TeamCity 中。 项目一个 有一个名为 的构建配置A1 . 项目乙 是的子项目一个 . 项目乙 有一个名为 的构建配置B1 . 在这个构建配置中,我定义了两个参数:
我们有一个编译并创建工件的构建。然后我们有另一个 Build,它使用最后一个 Compile 构建并将其部署到适当的环境。完成后,我必须在 TC 中标记已推送到环境中的构建。有没有一种方法可以标记使用
我正要第一次自己设置teamcity。在我不得不说的大多数方面都非常好和简单。但是,我有一个问题无法解决,也无法找到任何相关信息。 当我想发布我的工件时,我想排除某些文件类型。 例子: %system
我是一名优秀的程序员,十分优秀!