swamp-test-runner

Crates.ioswamp-test-runner
lib.rsswamp-test-runner
version0.2.26
created_at2025-07-03 07:51:52.225937+00
updated_at2025-08-18 11:28:09.317919+00
descriptiontest runner for Swamp
homepage
repositoryhttps://github.com/swamp/swamp
max_upload_size
id1735983
size56,230
Peter Bjorklund (piot)

documentation

README

Swamp Test Runner ๐Ÿงช

Your trusty companion for testing Swamp code! ๐ŸŠ Ensure your swamp magic works as expected.

Swamp Test Runner is the official test runner and framework for the Swamp Programming Language, designed to make testing your Swamp projects simple, expressive, and reliable. Write tests with the same clarity and power that Swamp offers for your main code.

๐Ÿค” Why Swamp Test Runner?

The test runner aims to provide:

  • Seamless Integration: Designed especially for Swamp, leveraging its type system and features.
  • Clear Syntax: Write tests that are easy to read and understand.
  • Expressive Assertions: Powerful and intuitive ways to check your code's behavior.
  • Helpful Output: Quickly pinpoint failures with informative messages (and yes, cool Unicode for pass/fail โœ…โŒ!).

โœจ Features

  • Simple Test Definition: Use the #[test] annotation to mark your test functions. The test function can not take any parameters.
  • Assertion: Use assert() in the tests, or panic().
  • Automatic Test Discovery: Finds your tests without complex configuration.
  • Detailed Failure Reports: Understand what went wrong and where, leveraging Swamp's friendly error style.
  • Clean & Readable Output: Know at a glance how your test suite is doing.

About Contributions

This is an open source project with a single copyright holder. While the code is publicly available under LICENSE, I am not accepting external contributions at this time.

You are welcome to:

  • Use the code according to the license terms
  • Fork the project for your own use, following the license terms
  • Report issues
  • Provide feedback
  • Share the project

If you have suggestions or find bugs, please feel free to open an issue for discussion. While I cannot accept pull requests, I value your feedback and engagement with the project.

Thank you for your understanding and interest in SwampTest! ๐Ÿ™

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2024-2025 Peter Bjorklund. All rights reserved.

Commit count: 802

cargo fmt