arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
695 stars 30 forks source link

Public-facing testing framework #1285

Closed BNAndras closed 2 months ago

BNAndras commented 10 months ago

Is your feature request related to a problem? Please describe. https://github.com/arturo-lang/arturo/blob/master/tools/tester.art is used internally to test code using ensure, but there's no public-facing testing framework when languages increasingly come with one either built-in or available as a module.

Describe the solution you'd like I'd like to see some sort of framework available to the public using idiomatic Arturo code. The specifics aren't that important as long as the user can define and run test suites which group similar test cases and can also assign human-readable labels to individual tests. Preferably, we could run all test suites declared in a file or just some of them if we pass in test suite names. Optionally, we could add a skip flag to specific tests so they're not run until the flag is removed or we run the CLI with a run-skipped switch. In the reporting stage, the CLI should report all passing tests, all failed tests, and all skipped tests.

Similar examples might be Elm's test, Go's testing, Racket's RackUnit or Pyret.

github-actions[bot] commented 10 months ago

Thank you for submitting an issue! :)

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

BNAndras commented 2 months ago

We can probably close this since we’re using unitt now.

drkameleon commented 2 months ago

We can probably close this since we’re using unitt now.

The truth is... yes! That was opened before Unitt came into existence (and even before our new package manager was up and running!)

Well spotted! 😉