Skip to content

Conversation

nathanmarks
Copy link
Member

Simplifies test suite setup and replaces built-in regression tool with vrtest.

@oliviertassinari @mbrookes

package.json Outdated
@@ -2,7 +2,7 @@
"name": "material-ui-build",
"private": true,
"author": "Material-UI Team",
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.1",
Copy link
Member

Choose a reason for hiding this comment

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

@@ -13,6 +13,8 @@ const globalStyleSheet = createStyleSheet('global', (theme) => {
},
'*, *:before, *:after': {
boxSizing: 'inherit',
transition: 'none !important',
animation: 'none !important',
Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -0,0 +1,5 @@
// Place your settings in this file to overwrite default and user settings.
Copy link
Contributor

Choose a reason for hiding this comment

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

did you forget or intentionally commit settings file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Accident, thanks.

@ArcanisCz
Copy link
Contributor

Tests (watch) are sooo much faster, that makes TDD much more appealing to do!

.eslintignore Outdated
@@ -1,11 +1,6 @@
node_modules
/build
/dist
Copy link
Member

Choose a reason for hiding this comment

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

I think that we still need it. Same for build. Well, that's only useful for people how publish to npm/work on the build process.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right. We can put them back then.

.eslintignore Outdated
/flow
/docs/site/build
Copy link
Member

Choose a reason for hiding this comment

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

Same, useful when I'm deploying the docs to firebase.

.gitignore Outdated
@@ -16,3 +16,4 @@ node_modules

# Editor files
.idea
tmp
Copy link
Member

Choose a reason for hiding this comment

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

Empty ending line?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 still getting used to my new editor haha

Copy link
Member

Choose a reason for hiding this comment

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

OT: What have you switched from / to?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sublime text to vscode

@nathanmarks
Copy link
Member Author

All good? @oliviertassinari @ArcanisCz

@nathanmarks
Copy link
Member Author

nathanmarks commented Feb 12, 2017

One thing to note -- I took out ngrok to simplify things even further. You may or may not have an issue depending on how you have docker setup. For CI it is simple since on linux we have a proper bridge interface but the docker0 interface does not exist on docker for mac.

To solve this on my laptop, I have created an alias for the loopback interface using the instructions provided at https://docs.docker.com/docker-for-mac/networking/#/there-is-no-docker0-bridge-on-macos

sudo ifconfig lo0 alias 10.200.10.1/24

In our vrtest config I have added this so that it can be overridden with an env var:

testUrl: process.env.DOCKER_TEST_URL || 'http://10.200.10.1:3090',

If this becomes problematic, I can add ngrok back to tunnel.

@ArcanisCz
Copy link
Contributor

ArcanisCz commented Feb 12, 2017

@nathanmarks It seems good to me, but i have not much insight into majority of this configuration and not much say in matter anyway :)

@nathanmarks nathanmarks merged commit 20c409c into next Feb 12, 2017
@nathanmarks nathanmarks deleted the next-vrtest branch February 12, 2017 18:43
@oliviertassinari
Copy link
Member

oliviertassinari commented Feb 12, 2017

@nathanmarks Awesome 🎉 .
I confirm @ArcanisCz comment. The watch mode is ridiculously fast in comparison to jest 😆 .
We are at around 200 tests/s when jest is at 5 tests/s...

@oliviertassinari oliviertassinari changed the title Test suite updates [core] Simplify test suite and use vrtest for regressions Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants