This is the selenium UI test for Micro:bit.
- Clone the PXT git repository
- Install Chrome browser if you don't have it on your computer.
- Download ChromeDriver from https://sites.google.com/a/chromium.org/chromedriver/downloads. The downloaded file is a zip file. Extract it and place the executable in a folder in your PATH. Please note that there are multiple versions of ChromeDriver in download list. You need to make sure your ChromeDriver's version matches your Chrome version.
- Open folder tests/ui-test
- Install required node.js modules for the selenium test
npm install
npm test
- Open VS Code
- Open project
ui-test
folder in VS Code - Click
Debug
- Choose
Mocha Tests
in Debug - Click
Start Debugging