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

feat: coverage #1899

Merged
merged 29 commits into from
Nov 3, 2020
Merged

feat: coverage #1899

merged 29 commits into from
Nov 3, 2020

Conversation

rishabh3112
Copy link
Member

@rishabh3112 rishabh3112 commented Oct 8, 2020

WIP

What kind of change does this PR introduce?
Feature, adds coverage to CI

Did you add tests for your changes?
No

If relevant, did you update the documentation?
No

Summary
Attempt on adding coverage

Does this PR introduce a breaking change?
No

Other information
Part of Roadmap

tsconfig.json Outdated Show resolved Hide resolved
@rishabh3112 rishabh3112 changed the base branch from next to master October 18, 2020 06:26
@rishabh3112 rishabh3112 marked this pull request as ready for review October 18, 2020 07:29
@rishabh3112 rishabh3112 requested a review from a team as a code owner October 18, 2020 07:29
@alexander-akait
Copy link
Member

@rishabh3112 Can you rebase, I think we should merge it

@rishabh3112
Copy link
Member Author

Rebasing.

@rishabh3112
Copy link
Member Author

rishabh3112 commented Nov 3, 2020

Done, but tests on windows never end 😞 . Running for 3hr+ https://github.com/webpack/webpack-cli/runs/1346351375

@alexander-akait
Copy link
Member

@rishabh3112 let's try to disable watch test

@rishabh3112
Copy link
Member Author

Okay, on it.

@rishabh3112
Copy link
Member Author

Something weird, all test passed (including watch and serve tests) on windows but jest is not exiting after tests ends.
Here is the important part of log:
https://github.com/webpack/webpack-cli/runs/1346351346#step:8:409

@alexander-akait
Copy link
Member

I think it is old bug execa on windows, working with new processes on windows is problems always, I think we can use --forceExit here

@rishabh3112
Copy link
Member Author

rishabh3112 commented Nov 3, 2020

I think we can use --forceExit here

That did the trick 👍🏻

@alexander-akait
Copy link
Member

Great, ping me when it will be green I will merge it and fix configuration

@rishabh3112
Copy link
Member Author

ping @evilebottnawi

@alexander-akait
Copy link
Member

Thanks, I think we need look how configuration codecov for github actions, because not it is not showing in checks

@alexander-akait alexander-akait merged commit 0038ff2 into master Nov 3, 2020
@alexander-akait alexander-akait deleted the feat/coverage branch November 3, 2020 13:49
@alexander-akait
Copy link
Member

Anyway let's do it in separate PR

@@ -4,7 +4,7 @@ const { stat } = require('fs');
const { resolve } = require('path');

describe('webpack cli', () => {
it(
it.skip(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why skip?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not working with nyc 🤷🏻‍♂️ , need a fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need nyc when jest has it inbuilt?

/cc @evilebottnawi

Maybe we should remove it and use jest --coverage

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh spawned process mess, we need to get to this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep spawned process

@rishabh3112
Copy link
Member Author

Anyway let's do it in separate PR

Did PR on here #2032

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

Successfully merging this pull request may close these issues.

None yet

4 participants