Testing
13 pages.
A `[Test]` reaches the network for real — `Http.*` and a typed `client { }` operation both run inside a test, against the live endpoint. So a test…
A test in Osy# is not a unit test with the world mocked out. It is your app, running against its own throwaway database, with your security rules…
The assertions a test makes. Beyond the usual equality and null checks there are comparisons (Greater, Less, InRange), a regex check (Matches)…
Debugs one of your app's tests against a Platform on your own machine — breakpoints, stepping, and variable inspection in your editor — with no…
Every other assertion is about TEXT or STATE, and all of them pass on a screen that is visually broken: a control can be on the page, enabled…
Runs your app's tests against a throwaway copy of its database, reporting each test as it finishes. Your local source is what runs, so you never have…
Runs your app's tests against a Platform on your own machine — no account, no network, no setup beyond a running local platform. `osyrin dev` starts…
In a test, moves the run's clock FORWARD by a duration, then lets the next Workflow.Settle fire every workflow timer the jump made due — reminders…
Drive the real UI from a test: navigate to a route, click what a person would click, and assert on what the screen shows. `Ui.*` does things…
Answers a link minted by `<Slot>.CallbackUrl()` the way the third party holding it would — anonymously, with no principal of any kind. It is the only…
A test is an ordinary function marked [Test]. It runs against a throwaway clone of the app, so it may create rows and break rules freely. A…
A test runs deny-all as an anonymous principal, so to read or write real data it must act AS a seeded `[Principal]`. Declare a named selector with…
Runs a block as a given principal, so security rules apply exactly as they would for that user. It is how you test that a rule denies the people it…