Skip to content

Latest commit

 

History

History
104 lines (70 loc) · 2.26 KB

CONTRIBUTING.md

File metadata and controls

104 lines (70 loc) · 2.26 KB

OpenWebf Contributing Guide

Prerequisites

Get the code:

Additional configuration for Windows users

git config --global core.symlinks true
git config --global core.autocrlf false

Running the following commands to get the code:

git clone [email protected]:openwebf/webf.git
git submodule update --init --recursive

Install

$ npm install

Prepare

Windows, Linux, Android

The current C/C++ code build process has been integrated into Flutter's compilation and build pipeline for Windows, Linux, and Android.

Run the following script to generate C/C++ binding code using the code generator:

npm run generate_binding_code

iOS and macOS

The default build type is Debug. To create a release build, add :release to your command.

Example: Execute npm run build:bridge:macos:release to build a release bridge for macOS.

$ npm run build:bridge:ios:release    # iOS
$ npm run build:bridge:macos:release  # macOS

Run Example

$ cd webf/example
$ flutter run -d <platform>

Run integration Test

cd integration_tests
npm run integration

Run specific group of test specs in integration test

To run specify groups of test specs:

SPEC_SCOPE=DOM npm run integration // match pattern is located in `spec_group.json`

Run integration test without build test apps

Quicker start up if you changed the test specs only.

npm run integration -- --skip-build

Run one test spec only

Change the it into fit to running this test spec only.

fit('document.all', () => {
  expect(document.all).not.toBeUndefined();
  expect(document.all.length).toBeGreaterThan(0);
});