balls
balls copied to clipboard
the testing framework with balls 🔴🟡🟢
...because it's statically recorded when the test runner is built. So, it can be wrong for local invocations.
_edit:_ [code in the results branch](https://github.com/disruptek/cps/tree/results) I'm trying to write the result operator such that the following test works as you might expect: ```nim block: ## assignment shim with constant...
```nim import testes func failcase(path: string): string {.compileTime.} = raise newException(ValueError, "nope.") suite "testes": block: expect ValueError: failcase("some string") ```
I expect that we test multiple versions by default (if gitnim is detected) and otherwise not. :wink:
It's probably worth waiting for the `pm` package to supply the necessary machinery to make this trivial, but it could be done early via the local configuration logic.
Probably just `cutelog` and then we can use the style "painter" within...
I just want some high-level values here for rough measurement of the expense of individual test invocations.
We should layer statements in each block so that we can accumulate state without breaking scope and still catch exceptions. This will unify `var x = foo()` statements with the...
Ideally, we would provide a delta between default configuration and current configuration.