-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
CONTRIBUTING.md
and support WSL2 (#3378)
* Fix WSL2 build * Refreshed content * Update * Add workflows * Update * Add lolex * Update verbage * Update verbage * Update verbage * Update verbage * Update verbage * Update content * Update entry * Apply suggestions from code review Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com> * Apply PR suggestions * Typo Co-authored-by: Corina <14900841+corinagum@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
274 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,40 @@ | ||
Fixes #<!-- If this addresses a specific issue, please provide the issue number here --> | ||
<!-- Please provide the issue number here if any --> | ||
|
||
> Fixes # | ||
## Changelog Entry | ||
|
||
<!-- Please paste your new entry from CHANGELOG.MD here --> | ||
<!-- Please paste your new entry from CHANGELOG.MD here. Entry is not required for work only related to development purposes. --> | ||
|
||
## Description | ||
|
||
<!-- Please discuss the changes you have worked on. What do the changes do; why is this PR needed? --> | ||
<!-- Please discuss the changes you have worked on. What do the changes do; why is this PR needed? --> | ||
|
||
## Design | ||
|
||
<!-- If this feature is complicated in nature, please provide additional clarifications. --> | ||
|
||
## Specific Changes | ||
|
||
<!-- Please list the changes in a concise manner. --> | ||
<!-- Please list the changes in a concise manner. --> | ||
|
||
- | ||
- | ||
- | ||
|
||
<!-- For bugs, add the bug repro as a test. Otherwise, add tests to futureproof your work. --> | ||
- [ ] I have added tests and executed them locally | ||
- [ ] I have updated `CHANGELOG.md` | ||
- [ ] I have updated documentation | ||
|
||
## Review Checklist | ||
|
||
--- | ||
> This section is for contributors to review your work. | ||
- [ ] Testing Added | ||
<!-- If you are adding a new feature to a library, you must include tests for your new code. --> | ||
- [ ] Accessibility reviewed (tab order, content readability, alt text, color contrast) | ||
- [ ] Browser and platform compatibilities reviewed | ||
- [ ] CSS styles reviewed (minimal rules, no `z-index`) | ||
- [ ] Documents reviewed (docs, samples, live demo) | ||
- [ ] Internationalization reviewed (strings, unit formatting) | ||
- [ ] `package.json` and `package-lock.json` reviewed | ||
- [ ] Tests reviewed (coverage, legitimacy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
## How to run tests | ||
|
||
Automated testing in Web Chat is using multiple open-source technologies. | ||
|
||
- [Azure DevOps](https://azure.microsoft.com/en-us/services/devops/) for automatic testing | ||
- Test against [MockBot](https://github.com/compulim/BotFramework-MockBot) | ||
- Try it out with this [live demo](https://microsoft.github.io/BotFramework-WebChat/01.getting-started/a.full-bundle) | ||
- Visual regression tests (a.k.a. compare screenshots) | ||
- Generated on [Chrome on Docker](https://github.com/SeleniumHQ/docker-selenium) | ||
- Compared using [`pixelmatch`](https://npmjs.com/package/pixelmatch) via [`jest-image-snapshot`](https://npmjs.com/package/jest-image-snapshot) | ||
- Run under [`Jest`](https://jestjs.io/) | ||
- [`Istanbul`](https://npmjs.com/package/istanbul) for code coverage | ||
- [`Coveralls`](https://coveralls.io/) for test statistics | ||
|
||
### Running tests under Docker | ||
|
||
- Install Docker | ||
- On Windows, set environment variable `COMPOSE_CONVERT_WINDOWS_PATHS=1` | ||
- `docker-compose up --build` | ||
- In a separate terminal, run: | ||
- `npm test` | ||
|
||
### Running tests under local box | ||
|
||
- Install latest Chrome | ||
- Download [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) and extract to project root | ||
- Set environment variable `WEBCHAT_TEST_ENV=chrome-local` | ||
- `npm test` | ||
Please refer to [CONTRIBUTING.md](https://github.com/microsoft/BotFramework-WebChat/tree/master/.github/CONTRIBUTING.md#running-automated-tests) on running automated tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '3' | ||
|
||
services: | ||
# On Windows, run with COMPOSE_CONVERT_WINDOWS_PATHS=1 | ||
|
||
chrome: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile-selenium | ||
depends_on: | ||
- selenium-hub | ||
- webchat | ||
- webchat2 | ||
environment: | ||
- HUB_HOST=selenium-hub | ||
- HUB_PORT=4444 | ||
|
||
selenium-hub: | ||
image: selenium/hub:3.141.59-zirconium | ||
container_name: selenium-hub | ||
environment: | ||
- GRID_BROWSER_TIMEOUT=60 | ||
- GRID_TIMEOUT=60 | ||
ports: | ||
- "4444:4444" | ||
|
||
webchat: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile-testharness | ||
ports: | ||
- "5080:80" | ||
|
||
webchat2: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile-testharness2 | ||
ports: | ||
- "5081:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.