Once the above steps are completed, the sdk-development repository will automatically detect the new test vectors by consuming artifacts generated by a github action (No action by you required)
The system will indicate whether the test passes or fails with a checkmark or an 'x'.
Your new test vector system is now set up and ready for use!
Creating New Test Vector Full Walkthrough
Step 1: Create New Test Vector
Navigate to the GitHub repository: sdk-development[https://github.com/TBD54566975/sdk-development/tree/main/web5-test-vectors]
Create a new folder and JSON file with the structure example_feature/hello_world.json.
Populate the JSON file as follows:
Step 2: Copy JSON to Local Test-Vectors Directory
Copy the hello_world.json file from example_feature directory.
Place the copied file into the top level test-vectors directory of both web5-kt and web5-js projects.
Step 3: Create Unit Test in web5-kt
In the web5-kt project, create a new unit test class.
Name the class following the given pattern:
Prefix: Web5TestVectors
Middle: Convert example_feature to ExampleFeature (capitalize words and remove underscores)
Combined Output:
Web5TestVectorsExampleFeature
Step 4: Create Unit Test in web5-js
In the web5-js project, create a new unit test class.
Name the class following the given pattern:
Prefix: Web5TestVectors
Middle: Convert example_feature to ExampleFeature (capitalize words and remove underscores)
Combined Output:
Web5TestVectorsExampleFeature
Step 5: Completion
Your new test vector system is now set up and ready for use!