This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
Test Checklist
James Wallis edited this page Oct 29, 2020
·
19 revisions
Beforehand:
- Tear down the Local Fabric
- Of the commands listed below, run some using the Command Palette (Cmd + Shift + P) and others using the UI
Testing migration
- Delete the extension directory (by default this is
~/.fabric-vscode
) - Using the latest version of the extension (not the test VSIX), start the Local Fabric
- Install the test VSIX
- Migration should take place - no errors should be thrown
Local Fabric operations
- Create a Smart Contract Project
- Package Smart Contract
- Start the Local Fabric
- Install Smart Contract
- Instantiate Smart Contract
- Connect to Local Fabric in the 'Fabric Gateways'
- Submit a 'create' transaction and evaluate a 'read' transaction
- Generate Smart Contract tests in all available languages & Run them
- Update the version of the smart contract and Upgrade Smart Contract
Debugging (v1)
- Go to the VS Code debug tab and select 'Debug Smart Contract' (This will install a debug package)
- Place a breakpoint on a line of code inside a transaction
- Submit the transaction via the debug toolbar button (this should stop the code at the breakpoint). Add a new transaction, Restart debugging (green icon) and confirm the new transaction is available for submitting
Samples operations
- Select a Sample from the Home page
- Clone the Sample repository
- Click 'Open Locally' on a contract or application and 'Add to Workspace'
Home Page operations
- Close the Home page and open it via the top right hand side Blockchain icon (The icon only appears if you have something open in VS Code (including the VS Code welcome page). The home page can also be opened using the Command Palette).
Prerequisites Page operations
- Open the Prerequisites page using the
View Prerequisites
command - alternatively, uninstall a required dependency such as Docker and reload the window. - Toggle the Local Fabric functionality off and on again.
Tutorial Gallery Page
- Open the Tutorial Gallery page either from the Home page, or by running the command
View Tutorial Gallery
. - Open a tutorial, expand all the sections and check a link to another tutorial.
If any bugs are found, please check here before creating an issue.
Up to date as of v1.0.15