Skip to content

Drop browser tests - #455

Open
takenspc wants to merge 1 commit into
form-data:masterfrom
takenspc:feature/drop-browser-test
Open

takenspc wants to merge 1 commit into
form-data:masterfrom
takenspc:feature/drop-browser-test

Conversation

@takenspc

Copy link
Copy Markdown

Considering following conditions, it seems that there is no necessity for testing whether this module is working on browsers.

Additionally, current browser tests still depend on phantom.js and tests actually fail without phantom.js. There is no reason to support phantom.js anymore.

https://travis-ci.org/form-data/form-data/jobs/648654832

browserify -t browserify-istanbul test/run-browser.js | obake --coverage

You had errors in your syntax. Use --help for further information.
Cannot find phantomjs in your PATH. If phantomjs is installed
you may need to specify its path manually with the "-p" option.
Run this executable with "--help" or view the README for more
details.

This PR drops browser tests and reorganize tests related npm scripts.

Considering following conditions, it seems that there is no necessity for testing whether this module is working on browsers.

-   IE10+ implements `new FormData()` and `append`

    https://developer.mozilla.org/en-US/docs/Web/API/FormData

-   JSDOM has own implementation of FormData APIs

    https://github.com/jsdom/jsdom/tree/master/lib/jsdom/living/xhr
@alexindigo

Copy link
Copy Markdown
Member

@takenspc Thanks for you interest. Do you mind to elaborate on the reason for this change?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.5%) to 97.717% when pulling 6c39654 on takenspc:feature/drop-browser-test into d702625 on form-data:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.5%) to 97.717% when pulling 6c39654 on takenspc:feature/drop-browser-test into d702625 on form-data:master.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants