You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote by adding a 👍 reaction to the issue to help us prioritize.
If you are interested to work on this issue, please leave a comment.
Feature Spec
A proposal for a very simple unit testing capability that can help us raise the bar on quality. At the moment, our tests are not executing inflight code.
You can use wing test in order to execute tests that are built into the application.
Each test is a cloud function with the word test in its identifier "test".
Community Note
Feature Spec
You can use
wing test
in order to execute tests that are built into the application.Each test is a cloud function with the word test in its identifier "test".
For example:
Now, if I run this:
I can write multiple tests by simply creating additional functions:
Use Cases
Unit tests that cover both preflight and inflight.
Preflight code is executed during compilation, and this allows executing inflight as well.
Implementation Notes
Here's a little script I wrote that runs the
root/test
function inside a simulator. It takes in a.wsim
file.Component
Other
The text was updated successfully, but these errors were encountered: