StevensSEC / stevens-web-extension

A portable, centralized hub for collecting, analyzing, and presenting data for Stevens students.
GNU General Public License v3.0
6 stars 0 forks source link

Local web server for development/testing #15

Open adapap opened 4 years ago

adapap commented 4 years ago

A local web server will allow tests to function as expected. In theory, this should also expedite development as one will not need to manually load the extension into the browser.

[This extension] uses Selenium to emulate a Chrome runtime. [Webserver implementation] to improve development workflow and support automated testing. Needed for #14 to provide value.

dyc3 commented 4 years ago

Why a web server? Is there not a way to automatically put an extension into a browser and load that?

adapap commented 4 years ago

I just added a hot-reload plugin which has the extension query its local files to see if there were changes (after all, they are tied to your computer's filesystem). So a webserver may not be necessary anymore. Still need to fix webpack development which doesn't rebuild everything properly.

adapap commented 4 years ago

However, I do think we have to emulate the browser in order to write any tests that work before uploading the extension.