@bbge/gui
v0.1.0-prerelease.20190511181839
Published
Graphical User Interface for creating and running BBGE projects
Readme
bb-gui
Installation
This requires you to have Git and Node.js installed.
In your own node environment/application:
npm install https://github.com/FBDY/bb-gui.gitIf you want to edit/play yourself:
git clone https://github.com/FBDY/bb-gui.git
cd bb-gui
npm installGetting started
Running the project requires Node.js to be installed.
Running
Open a Command Prompt or Terminal in the repository and run:
npm startThen go to http://localhost:8601/ - the playground outputs the default GUI component
Testing
Documentation
You may want to review the documentation for Jest and Enzyme as you write your tests.
See jest cli docs for more options.
Running tests
NOTE: If you're a windows user, please run these scripts in Windows cmd.exe instead of Git Bash/MINGW64.
Before running any test, make sure you have run npm install from this repository's top level.
Main testing command
To run linter, unit tests, build, and integration tests, all at once:
npm testRunning unit tests
To run unit tests in isolation:
npm run test:unitTo run unit tests in watch mode (watches for code changes and continuously runs tests):
npm run test:unit -- --watchYou can run a single file of integration tests (in this example, the button tests):
$(npm bin)/jest --runInBand test/unit/components/button.test.jsxRunning integration tests
Integration tests use a headless browser to manipulate the actual html and javascript that the repo produces. You will not see this activity (though you can hear it when sounds are played!).
Note that integration tests require you to first create a build that can be loaded in a browser:
npm run buildThen, you can run all integration tests:
npm run test:integrationOr, you can run a single file of integration tests (in this example, the backpack tests):
$(npm bin)/jest --runInBand test/integration/backpack.test.jsIf you want to watch the browser as it runs the test, rather than running headless, use:
USE_HEADLESS=no $(npm bin)/jest --runInBand test/integration/backpack.test.js