-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1902 from budde377/feature-fix-no-colors-to-run-c…
…ommand Feature fix no colors to run command
- Loading branch information
Showing
16 changed files
with
157 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Feature: Mocha reporter | ||
In order to use Karma | ||
As a person who wants to write great tests | ||
I want to be able to use the mocha reporter. | ||
|
||
Scenario: Execute a test in PhantomJS with colors | ||
Given a configuration with: | ||
""" | ||
files = ['mocha/plus.js', 'mocha/test.js']; | ||
browsers = ['PhantomJS']; | ||
frameworks = ['mocha', 'chai'] | ||
colors = true | ||
plugins = [ | ||
'karma-jasmine', | ||
'karma-phantomjs-launcher', | ||
'karma-mocha-reporter', | ||
'karma-mocha', | ||
'karma-chai' | ||
]; | ||
reporters = ['mocha']; | ||
""" | ||
When I start Karma | ||
Then it passes with like: | ||
""" | ||
2 tests completed | ||
""" | ||
|
||
Scenario: Execute a test in PhantomJS with no-colors | ||
Given a configuration with: | ||
""" | ||
files = ['mocha/plus.js', 'mocha/test.js']; | ||
browsers = ['PhantomJS']; | ||
frameworks = ['mocha', 'chai'] | ||
colors = false | ||
plugins = [ | ||
'karma-jasmine', | ||
'karma-phantomjs-launcher', | ||
'karma-mocha-reporter', | ||
'karma-mocha', | ||
'karma-chai' | ||
]; | ||
reporters = ['mocha']; | ||
""" | ||
When I start Karma | ||
Then it passes with like: | ||
""" | ||
✔ 2 tests completed | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* eslint-disable no-unused-vars */ | ||
// Some code under test | ||
function plus (a, b) { | ||
return a + b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* globals plus */ | ||
describe('plus', function () { | ||
it('should pass', function () { | ||
expect(true).to.be.true | ||
}) | ||
|
||
it('should work', function () { | ||
expect(plus(1, 2)).to.equal(3) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters