tutanota/packages/otest
jenkins build server 9753a3ae9c
v310.251016.0
2025-10-16 15:56:44 +02:00
..
lib Added assertion to deepEquals to also work for map comparisons 2025-08-21 16:27:11 +02:00
LICENSE.txt Improve docs for otest, cleanup 2023-08-02 16:23:57 +02:00
package.json v310.251016.0 2025-10-16 15:56:44 +02:00
README.md Improve docs for otest, cleanup 2023-08-02 16:23:57 +02:00
tsconfig.json Switch to @tutao/otest from ospec 2023-07-28 16:08:22 +02:00

otest

A little testing library. Current functionality:

  • A test runner
  • Grouping tests & specs into specs
  • Assertions
  • "spying" on functions
  • Printing the results
  • Filtering on test/spec name

Started as ospec re-implementation with filter support, the API is subject to change. Rough TODO list:

  • getting rid of overloaded o function, giving things proper greppable names
  • improving API for describing assertions
  • making it easier to supply custom matchers
  • including mocking/spying out of the box

API

See otest.ts

See Assertion.ts