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

Testing Workplan #635

Closed
arunoda opened this issue Jan 3, 2017 · 2 comments
Closed

Testing Workplan #635

arunoda opened this issue Jan 3, 2017 · 2 comments

Comments

@arunoda
Copy link
Contributor

arunoda commented Jan 3, 2017

This is about the testing setup of the Next.js project.
(Not about the testing about apps created with Next.js, that's something we should address too.)

We believe in a integration/end-to-end rather a bunch of unit tests which gives us better code coverage. That being said, we may have to unit tests for few utilities we are using.
We can breakdown what kind of tests we as follows:

Unit Tests

For the some of the utilities we use. Things like shallow-equals.js is a good example for that.

Isolated Tests (a form of integration tests)

We do this for the isolated utilities like server/resolve.js which we are using internally.

Integration/E2E Tests

Here are checking the actual features of next. We do this by actually running Next.js apps. We can incorporate example apps for this. We can simply place some tests inside those apps.
We may have to do some client side tests as well. For that, we could use WebDriver.

Q/A (Human Testing)

It's not possible to automate tests for some cases. One such area is HMR related features. For that, we need to test them manually.
At first, we may have bunch of these Q/A tests. Eventually, we could transform them into automated test cases.

@nkzawa
Copy link
Contributor

nkzawa commented Jan 3, 2017

Basically sounds awesome.

Integration/E2E Tests

I prefer to use jsdom to make things simple and fast. jsdom doesn't support navigations which we need :(

Q/A (Human Testing)

I'd rather like to try automated tests even for HMR.

@arunoda arunoda mentioned this issue Jan 3, 2017
@arunoda
Copy link
Contributor Author

arunoda commented Jan 16, 2017

Now we have this in the core.

@arunoda arunoda closed this as completed Jan 16, 2017
@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants