Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Electron React Flask Boilerplate

Initialization

Be sure to have the latest Nodejs and NPM installed: Nodejs >= 14.7.0 , NPM >= 6.14.7

npm run init

Testing

Frontend JS Testing

Automatic

npm run test

Manual

npm install -g jest jest-cli
export DISPLAY=:0
jest

Backend Python Testing

Automatic

Automated testing for a web app with javascript requires browser emulation. For these tests we use the selenium python module (included in requirements.txt) and chromedriver. The latter can be installed at the command line as follows for linux:

sudo apt install chromium-chromedriver

Or installed separately for windows:

Chromedriver

Now unit tests can be invoked as follows.

npm run pytest

Debug

Linux:

npm run debug

Windows: (in separate powershell terminals):

npm run start-backend
npm run start-react
npm run start-electron