-
Notifications
You must be signed in to change notification settings - Fork 209
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
Browser Based Tests Using tape-run #38
Comments
Hey, I actually couldn't understand this part. Tried to think about it the whole day but to no relief:
Could you clarify this please? Also, Can PhantomJS be used for unit testing? like can we run it in "npm test" ? |
PhantomJS is a browser compiled to run headlessly on the commandline --
it's pretty neat. JavaScript libraries that run in a browser environment
can do automated testing using PhantomJS even on the commandline. So, for
example, there is a DOM.
So this is the idea of actually making automated tests for both Node and
browser environments, but that all actually can be run headlessly on the
commandline. :-) kind of a funny idea but it could help us ensure the core
library's functions are always tested as working OK in both environments.
…On Wed, Jul 5, 2017 at 3:09 PM, Chinmay Pandhare ***@***.***> wrote:
Hey, I actually couldn't understand this part. Tried to think about it the
whole day but to no relief:
You could do it in a separate file called browserSpec or something.
Could you clarify this please?
Also, Can PhantomJS be used for unit testing? like can we run it in "npm
test" ?
Doesn't PhantomJS require the opening of a browser? Am I missing something?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ2gUZbLtLW6avRKhtCnKsjmTTch_ks5sK99egaJpZM4ONqlI>
.
|
PhantomJS uses the |
huh, interesting... wait, what do you mean?
https://www.npmjs.com/package/tape-run -- yes, that looks good!
…On Thu, Jul 6, 2017 at 5:05 PM, Chinmay Pandhare ***@***.***> wrote:
PhantomJS uses the tape-run module to headlessly test browser code.
We can also directly use the tape-run module. Should we do this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7gOi2teclSGBhp9tgu7knDub803ks5sLUwggaJpZM4ONqlI>
.
|
And confirm that the library runs the same in both nodejs and phantomjs -- this will be cool! You could do it in a separate file called browserSpec or something.
The text was updated successfully, but these errors were encountered: