Angular 如何发布角度测试条件?
我想发布测试条件,以便领域专家可以检查计算并公开应用程序逻辑 e、 g.在已知输入的情况下,领域专家将能够查看条件Angular 如何发布角度测试条件?,angular,unit-testing,Angular,Unit Testing,我想发布测试条件,以便领域专家可以检查计算并公开应用程序逻辑 e、 g.在已知输入的情况下,领域专家将能够查看条件 expect(component.issuerChartData['Development Bank'].value).toBe(142537903416); 并且知道它是否正确 我已经运行了代码覆盖率,并展示了它。如果他们想查看,这将显示整个测试代码。缺少的是正在评估的条件 karma.conf.js文件是 module.exports = function (config)
expect(component.issuerChartData['Development Bank'].value).toBe(142537903416);
并且知道它是否正确
我已经运行了代码覆盖率,并展示了它。如果他们想查看,这将显示整个测试代码。缺少的是正在评估的条件
karma.conf.js文件是
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma'),
require('karma-spec-reporter'),
require('karma-html-detailed-reporter')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/bonds-view'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['kjhtml', 'progress', 'spec'],
specReporter: {
maxLogLines: 5, // limit number of lines logged per test
suppressErrorSummary: true, // do not print error summary
suppressFailed: false, // do not print information about failed tests
suppressPassed: false, // do not print information about passed tests
suppressSkipped: true, // do not print information about skipped
// tests
showSpecTiming: false, // print the time elapsed for each spec
failFast: false // test would finish with error when a first
// fail occurs.
},
htmlDetailed: {
splitResults: true
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};