Comments (8)
If I use describe.skip
to skip the specific tests in legacy browsers, instead I'll get the tests in red:
Actually, they are executed in modern browsers, but the result is marked as if the tests haven't been run.
from karma-mocha-reporter.
Is there a link to the repository so that we can run the tests ourselves?
from karma-mocha-reporter.
Sorry the repo is currently a private one, but I can give you an example code:
if (navigator.serviceWorker) {
describe('Service Worker Tests', function() {
it('should be presented', function() {
// test code
});
});
}
describe('Other Tests', function() {
it('should be presented too', function() {
});
});
If you run this code with chrome, firefox and safari, you will only see Other Tests
suite in outputs.
from karma-mocha-reporter.
@4kochi ah, I think I misunderstood what you meant...
I created a demo that reproduces this issue here: https://github.com/idiotWu/karma-mocha-reporter-demo. To run this demo, you need to have Chrome and Safari installed in your OS.
from karma-mocha-reporter.
Thx, will have a look
from karma-mocha-reporter.
Added a new option printFirstSuccess
. When set to true
you will see the reports. Will be released in the next version.
from karma-mocha-reporter.
Released in v2.2.2
from karma-mocha-reporter.
Much thanks! Now it works like a charm!
from karma-mocha-reporter.
Related Issues (20)
- Enhance symbols fallback for windows HOT 2
- Broken on Windows 10 HOT 3
- Console.log written to console twice HOT 3
- Order of output sections HOT 1
- Install procedure HOT 3
- display test duration HOT 1
- Diff isn't showing for object in array
- colors.info symbol can be used for skipped unit tests
- npm audit ansi-regex HOT 11
- I only see describes, no its. HOT 2
- Skipped tests listed in failed tests. HOT 5
- concurrent runs screw up log report HOT 6
- Multiple describes with same name not grouped correctly
- Incorrect formatting inside Travis CI?? HOT 5
- Support for different failure messages for the same test case HOT 2
- Cannot show file path on error test HOT 5
- Support tests with reserved prototype names HOT 1
- It doesn't working with angular-cli HOT 4
- Error sources occasionally being dropped from karma-mocha-reporter summary HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-mocha-reporter.