Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): add test for flush resultsBuffer on engine upgrade #3487

Merged
merged 1 commit into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions test/e2e/reporting.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Feature: Results reporting
In order to use Karma
As a person who wants to write great tests
I want to Karma to report test results in the same order as they are executed.

Scenario: Results appear as tests are executed
Given a configuration with:
"""
files = ['reporting/test.js'];
browsers = ['ChromeHeadlessNoSandbox'];
plugins = [
'karma-mocha',
'karma-mocha-reporter',
'karma-chrome-launcher'
];
frameworks = ['mocha']
reporters = ['mocha']
"""
When I start Karma
Then it passes with like:
"""
START:
Reporting order
✔ sync test
✔ async test
"""
9 changes: 9 additions & 0 deletions test/e2e/support/reporting/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe('Reporting order', () => {
it('sync test', () => {
// pass
})

it('async test', (done) => {
setTimeout(done, 200)
})
})