Skip to main content

Test Harness

How to develop within the DIGIDECK Test Harness

Local development is made easy with the DIGIDECK Test Harness and the ddcomponents CLI.

  1. If you have not yet, first follow the instructions in Get Started.

  2. Install localhost SSL certificates installed, if not done already.

ddcomp install
warning

This command uses Homebrew to install mkcert package. If you are using Windows you must install mkcert with chocalatey first!

choco install mkcert
  1. Open a terminal at the root of your Component Project.

  2. Build, serve and open Test Harness in one command.

npm start

or

ddcomp serve
  1. Test Harness should automatically open in your default browser. If not, you can navigate to the test harness at:
https://app.platform.sportsdigita.com/test-harness/nodeName/<node-name>/organization/<organization-id>
warning

NOTE: SSL certificate does not work in Mozilla Firefox. Please use Chrome/Edge/Safari.

warning

NOTE: This change in Chrome 142 disallows localhost outside requests from the presentation/angular. Because of this, if you are on chrome 142 or above, you will receive CORS errors and not be able to properly run the test harness.

To fix this, you must disable this flag in Chrome: chrome://flags/#local-network-access-check while working in the test harness.

Using a custom port

Set testHarnessOptions.port in your component.config.json to the desired port number and start the test harness.