winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.04k stars 196 forks source link

Optional names for test declaration #3182

Open MarkMcCulloh opened 1 year ago

MarkMcCulloh commented 1 year ago

Feature Spec

The syntax for test declaration is:

test "name" {
  // tests
}

test {
  // more tests
}

If name is not provided, a test name is generated. You may have multiple unnamed tests in a single file.

Use Cases

Lower the barrier to tests even more

Implementation Notes

Injecting names like Test1, Test2, Test3 and so on seems good enough.

Side note: Zig has this functionality (including anonymous tests https://ziglang.org/documentation/master/#Test-Declarations)

Component

No response

Community Notes

github-actions[bot] commented 1 year ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 1 year ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 7 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 4 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!