Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. module.exports = function(config) {
  2. config.set({
  3.  
  4. // base path that will be used to resolve all patterns (eg. files, exclude)
  5. basePath: '',
  6.  
  7.  
  8. // frameworks to use
  9. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  10. frameworks: ['jasmine'],
  11.  
  12.  
  13. // list of files / patterns to load in the browser
  14. files: [
  15. '_test/test.js'
  16. ],
  17.  
  18.  
  19. // list of files to exclude
  20. exclude: [
  21. ],
  22.  
  23.  
  24. // preprocess matching files before serving them to the browser
  25. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  26. preprocessors: {
  27. },
  28.  
  29.  
  30. // test results reporter to use
  31. // possible values: 'dots', 'progress'
  32. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  33. reporters: ['progress'],
  34.  
  35.  
  36. // web server port
  37. port: 9876,
  38.  
  39.  
  40. // enable / disable colors in the output (reporters and logs)
  41. colors: true,
  42.  
  43.  
  44. // level of logging
  45. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  46. logLevel: config.LOG_INFO,
  47.  
  48.  
  49. // enable / disable watching file and executing tests whenever any file changes
  50. autoWatch: true,
  51.  
  52.  
  53. // start these browsers
  54. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  55. browsers: ['PhantomJS', 'Chrome'],
  56.  
  57.  
  58. // Continuous Integration mode
  59. // if true, Karma captures browsers, runs the tests and exits
  60. singleRun: false
  61. })
  62. }
  63.  
  64. describe('karma testing', function () {
  65. it('tests karma is working', function () {
  66. expect(true).toBe(true);
  67. console.log('test1');
  68. });
  69. });
  70.  
  71. 07 10 2015 16:41:14.890:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
  72. 07 10 2015 16:41:14.897:INFO [launcher]: Starting browser Chrome
  73. 07 10 2015 16:41:16.364:INFO [Chrome 45.0.2454 (Windows 7 0.0.0)]: Connected on socket 0uvPocfSI0prGxwdAAAA with id 29520633
  74. LOG: 'test1'
  75. Chrome 45.0.2454 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0 secs / 0.003 secs
  76. Chrome 45.0.2454 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.011 secs / 0.003 secs)
  77.  
  78. 07 10 2015 16:27:31.399:INFO [karma]: Karma v0.13.10 server started at http://localhost:9876/
  79. 07 10 2015 16:27:31.407:INFO [launcher]: Starting browser PhantomJS
  80. 07 10 2015 16:27:31.420:INFO [launcher]: Starting browser Chrome
  81. 07 10 2015 16:27:32.886:INFO [PhantomJS 1.9.8 (Windows 7 0.0.0)]: Connected on socket P5focoe7004aPX1rAAAA with id 49258591
  82. 07 10 2015 16:27:33.077:INFO [Chrome 45.0.2454 (Windows 7 0.0.0)]: Connected on socket BGtRdqevRGGXZTA-AAAB with id 42323971
  83. LOG: 'test1'
  84. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0 secs / 0.003 secs)
  85. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.003 s
  86. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.003 s
  87. Chrome 45.0.2454 (Windows 7 0.0.0) LOG: 'test1'
  88. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.003 s
  89. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.003 secs)
  90. PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.007 secs / 0.003 secs)
  91. Chrome 45.0.2454 (Windows 7 0.0.0): Executed 1 of 1 SUCCESS (0.028 secs / 0.002 secs)
  92. TOTAL: 2 SUCCESS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement