-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Test: Remove legacy test runner #4596
Conversation
4cfde67
to
8e2115d
Compare
be82e57
to
8ab2880
Compare
@aduth @blowery I call it the day. I didn't manage to finish this one. There is one more test that needs to be migrated. We have also still issue with Circle CI pattern matching. We have two files included in |
@@ -36,21 +35,9 @@ if ( program.grep ) { | |||
mocha.grep( new RegExp( program.grep ) ); | |||
} | |||
|
|||
if ( process.env.CIRCLECI ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to get rid of it, but it looks like some tests are still bombing without it.
a32e4c3
to
02beef0
Compare
52f0dab
to
e400145
Compare
/cc @aduth @blowery @mtias @nb I removed lots of code we no longer need. I hoped we need less changes to finish unit tests migration, that's why I didn't split this PR into smaller tasks. There aren't many additions so it should be good to review as one batch of changes. Let me know if I should split anything into its own PR. |
const featureExample = shallow( <FeatureExample /> ); | ||
assert.equal( 1, featureExample.find( '.feature-example' ).length ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The expected value is usually first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, lenghtOf is tricky:
.lengthOf(object, length, [message])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I get it now – the grammar would be wrong if the length was the first argument.
3aa17ba
to
507db47
Compare
Nice work here. All tests passed and ran in 25s on my computer! |
Would be nice to be able to run a subset of the tests in a next PR. I tried the |
🎉 |
Part of #3822.
Tasks done:
npm test
andmake test
are configured.tests.json
fromclient
folder and remove whitelist logic.Makefile
files. See Framework: Migrate tests from Makefile to single test runner #3942 (comment).client/components/feature-example
Testing
Run locally:
npm test
Check on Circle CI
Test Summary
:Check on Circle CI if tests are distributed properly between nodes. You can download reports from
Artifacts
tab: