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

Add timeout before starting qunit #107

Merged
merged 1 commit into from
May 2, 2018
Merged

Add timeout before starting qunit #107

merged 1 commit into from
May 2, 2018

Conversation

Johann-S
Copy link
Collaborator

@Johann-S Johann-S commented Apr 17, 2018

In this PR QUnit removed their timeout : qunitjs/qunit#1246 so we try to run unit tests before they are loaded, that leads to error like No tests were run.

Fixes: #103

/CC @XhmikosR @dignifiedquire

@XhmikosR
Copy link
Collaborator

XhmikosR commented Apr 17, 2018 via email

@Johann-S
Copy link
Collaborator Author

It was the approach used by QUnit, and with that delay our tests can run, I updated my commit and tests passed

@XhmikosR
Copy link
Collaborator

XhmikosR commented Apr 17, 2018 via email

@Johann-S
Copy link
Collaborator Author

Johann-S commented Apr 17, 2018

Nope, the other changes must be in our unit tests but not here, because it's in the internal logic of QUnit not in the public API.

They were green because we tested with just one file, so it's pretty hard to test that, plus in our use case we load files from CDN

EDIT: ping @dignifiedquire

@XhmikosR
Copy link
Collaborator

XhmikosR commented May 2, 2018

Ping @dignifiedquire

@Johann-S
Copy link
Collaborator Author

Johann-S commented May 2, 2018

I added a unit test which reproduce this use case

@Johann-S Johann-S merged commit 7d8c138 into karma-runner:master May 2, 2018
@Johann-S Johann-S deleted the add-timeout branch May 2, 2018 17:54
@XhmikosR
Copy link
Collaborator

XhmikosR commented May 2, 2018

@Johann-S: do you have access to the npm account too? If not maybe ask @zzo ?

@zzo
Copy link
Contributor

zzo commented May 2, 2018 via email

@Johann-S
Copy link
Collaborator Author

Johann-S commented May 3, 2018

@zzo my username is johann-s
https://www.npmjs.com/~johann-s

Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants