/js-gui-with-tests

Simple JavaScript app - built for testing, includes some qUnit tests

Primary LanguageHTML

js-gui-with-tests

JavaScript and Bootstrap Material Design are perfect for building apps with user interaction - and easy testing with qUnit

Links

Requirements

  • A browser (e.g., Firefox or Chrome)
  • A text editor (e.g., VS Code or Notepad++, or Chrome)
  • Web Server for Chrome Extension (or view the Demo)

IMPORTANT! Serve the tests so we can use fetch

This example uses the fetch API to grab all the HTML from the app for testing.

We can't serve as a local file when we use fetch, so to run the tests locally, use:

API

Benefits

  • No build tools required
  • qUnit uses simple HTML and JavaScript

See Also