Commit Graph

47 Commits

Author SHA1 Message Date
Ben 5154c0d79d
bumps ci to nim 1.6.18 2024-08-14 10:44:49 +02:00
Ben 32df0f19d6
version 0.5.2 2024-08-14 10:11:51 +02:00
gmega 12c356672d add exception handling for Chronos V4 2024-01-15 19:28:09 -03:00
Mark Spanbroek 8e2f4e73b9 version 0.5.1 2024-01-10 13:14:47 +01:00
Mark Spanbroek d22828cb8b Fix: ensure that `eventually` works when std/times is imported 2024-01-10 13:13:18 +01:00
Mark Spanbroek 98f99df4b4 version 0.5.0 2024-01-09 11:42:42 +01:00
Mark Spanbroek db3d1e0441 Update Readme with new imports 2024-01-09 11:40:31 +01:00
Mark Spanbroek eb6940c5de Add helpful compiler errors on old import paths 2024-01-09 11:40:31 +01:00
Mark Spanbroek 4f89a82a49 Fix BareExcept warnings when using stdlib unittest with chronos v4 2024-01-09 11:40:31 +01:00
Mark Spanbroek 90c1b35b67 Explicitly import either asyncdispatch or chronos version
Reorganizes the code into separate versions for asyncdispatch and
chronos so that we no longer have to rely on hard-to-maintain code
that implicitly works with both asyncdispatch and chronos.

This is a backwards incompatible change.
2024-01-09 11:40:31 +01:00
Mark Spanbroek c9423b198f Tests for chronos v4 2023-12-21 09:55:34 +01:00
Mark Spanbroek 1a0cd2c496 Tests for chronos v3 2023-12-21 09:55:34 +01:00
Mark Spanbroek bb07f702fb Fix for unittest2 > 0.0.9
Define our templates inside a new scope, to make sure
that they don't clash with the unittest2 templates.
2023-12-21 09:55:19 +01:00
gmega 9f31323a5f
add missing launderExceptions; actual version 0.4.3 2023-12-15 15:32:12 -03:00
gmega 1479949bd7
version 0.4.3 2023-12-15 14:51:32 -03:00
Mark Spanbroek 6799f9e1cc Fix BareExcept warnings 2023-12-14 08:32:12 -03:00
Mark Spanbroek 3f89e84f7c Raise Defect when unexpected exceptions occur 2023-12-14 08:32:12 -03:00
gmega 50dfe3aab1 add exception handling shim for Chronos V4 2023-12-14 08:32:12 -03:00
Mark Spanbroek 048d8e419e version 0.4.2 2023-08-28 17:35:03 +02:00
Mark Spanbroek a27ce97f9e Do not install the 'testmodules' folder 2023-08-28 17:35:03 +02:00
Mark Spanbroek 476191f7dd Fix local dependencies in tests 2023-08-28 17:35:03 +02:00
Mark Spanbroek fde8a33173 Bump Nim 1.6.x version in CI 2023-08-28 17:35:03 +02:00
Mark Spanbroek 8184a4bd8e Disable 'XCannotRaiseY' warnings caused by chronos 2023-08-28 17:35:03 +02:00
Mark Spanbroek 47480f2ade Remove Nim version requirement from nimble file 2023-08-28 17:35:03 +02:00
Mark Spanbroek fe1a34caf5 version 0.4.1 2023-07-11 11:25:54 +02:00
Mark Spanbroek 8359603f60 Fix warning when using `check eventually` with chronos 2023-07-11 11:24:25 +02:00
Mark Spanbroek e29612543e Version 0.4.0 2023-06-22 10:12:43 +02:00
Mark Spanbroek 698d0f77d6 Remove compatibility with Nim versions < 1.6
The `check eventually` template is incompatible
with Nim 1.2. It uses `await` in a template,
which is not possible until after 1.2.

https://github.com/nim-lang/Nim/pull/12085#issuecomment-526210003
2023-06-22 10:12:43 +02:00
Mark Spanbroek b551eb3705 Fix tests on Nim 1.6.12
Ignore the nimble.lock at the root level when running tests
2023-06-22 10:12:43 +02:00
Mark Spanbroek c8d324cfa6 Add `eventually` to wait for a condition to become true 2023-06-22 10:12:43 +02:00
Mark Spanbroek a236a5f0f3 Version 0.3.2 2022-07-21 11:00:47 +02:00
Mark Spanbroek 3818ada4f5 Support Nim 1.2.x 2022-07-21 10:52:57 +02:00
Mark Spanbroek 3aaa852b43 Fix crash when unhandled exception is cleared by teardown 2022-07-21 10:52:57 +02:00
Mark Spanbroek 32e62b6589 Remove obsolete ASDF Nim version 2022-07-21 10:52:57 +02:00
Ivan Yonchovski 15fff25b23
Add setup files (#2) 2022-07-12 23:30:36 +03:00
Mark Spanbroek 5347c59b4b version 0.3.1 2022-03-01 09:25:43 +01:00
Mark Spanbroek 1ecce5d1a6 Update documentation for setupAll and teardownAll 2022-03-01 09:25:15 +01:00
Eric Mastro c4b23d73a9 feat: add support for suite before and after
`before` executes async code before all tests in the suite.
`after` executes async code after all tests in the suite.
2022-03-01 07:22:46 +01:00
Mark Spanbroek d2089a6182 Add license 2022-01-10 11:14:39 +01:00
Mark Spanbroek 3882ed64ed Run CI also on older version of Nim 2021-07-07 10:36:37 +02:00
Mark Spanbroek deab7f9b5c version 0.3.0 2021-07-07 10:33:52 +02:00
Mark Spanbroek 4e3c263cfb Nim 1.4.8 2021-07-07 10:33:52 +02:00
Mark Spanbroek 2e00a43236 Add support for unittest2 2021-07-07 10:33:52 +02:00
Mark Spanbroek a7f3ae9428 Fix warnings about unused setup and teardown 2021-01-11 17:41:55 +01:00
Mark Spanbroek 737f01326c Make API identical to std/unittest
Also includes a fix for GcUnsafe2 warnings with chronos.
2021-01-11 17:28:55 +01:00
Mark Spanbroek 195f8cf668 Add Readme
Update test to match example in Readme.
2021-01-11 14:23:36 +01:00
Mark Spanbroek bb5bc92605 Asynchronous testing in Nim 2021-01-11 13:35:19 +01:00