Crystal Testing

Open-source Crystal projects categorized as Testing

Top 22 Crystal Testing Projects

  1. marionette

    Selenium alternative for Crystal. Browser manipulation without the Java overhead.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. minitest.cr

    Test Unit for the Crystal programming language

    Project mention: Make Marten Web Framework work with minitest.cr | dev.to | 2025-01-07

    ENV["MARTEN_ENV"] = "test" require "minitest/autorun" require "marten" require "marten/cli" # Only require those to avoid running Crystal Spec in parallel with minitest require "marten/spec/ext/db/statement" require "marten/spec/client" # Copy from https://github.com/martenframework/marten/blob/main/src/marten/spec.cr module Marten module Spec @@client : Marten::Spec::Client? def self.clear_client : Nil @@client = nil end def self.clear_collected_emails : Nil Marten::Emailing::Backend::Development.delivered_emails.clear end def self.delivered_emails : Array(Emailing::Email) Marten::Emailing::Backend::Development.delivered_emails end def self.client @@client ||= Marten::Spec::Client.new end def self.flush_databases Marten::DB::Connection.registry.values.each do |conn| Marten::DB::Management::SchemaEditor.run_for(conn) do |schema_editor| schema_editor.flush_model_tables end end end def self.setup_databases Marten::DB::Connection.registry.values.each do |conn| if !conn.test_database? raise "No test database name is explicitly defined for database connection '#{conn.alias}', cancelling..." end Marten::DB::Management::SchemaEditor.run_for(conn) do |schema_editor| schema_editor.sync_models end end end end end # Hooks https://github.com/ysbaddaden/minitest.cr/blob/bfc73a6196129e59b6c05d49d69e542f83a5939f/src/test.cr#L24 class Minitest::Test def before_setup # Register applications only once Marten.setup if Marten.apps.app_configs.empty? Marten::Spec.setup_databases end def after_teardown Marten::Spec.flush_databases Marten::Spec.clear_collected_emails Marten::Spec.clear_client DB::Statement.reset_query_count end end require "../src/project"

  4. webmock.cr

    Mock HTTP::Client

  5. spec2.cr

    Enhanced `spec` testing library for [Crystal](http://crystal-lang.org/).

  6. spectator

    Feature-rich testing framework for Crystal inspired by RSpec. (by icy-arctic-fox)

  7. crytic

    Mutation testing for crystal.

  8. coverage

    Coverage tool for Crystal lang

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. vcr

    VCR for Crystal!

  11. spec-kemal

    Easy testing for Kemal

  12. mocks.cr

    General purpose mocking library for Crystal.

  13. LuckyFlow

    Automated browser tests for web applications. Similar to Ruby's Capybara.

  14. power_assert.cr

    PowerAssert provides the more powerful assertion to you.

  15. microtest

    Small test framework, because it has power asserts as the only assertion.

  16. crotest

    A tiny and simple test framework for crystal

  17. selenium.cr

    Selenium library for Crystal

  18. timecop.cr

    Mock with `Time.now` with the power of time travel, time freeze and time scale.

  19. mock

    Doubles (stubs and mocks) library for Crystal, inspired by the API of rspec-mocks (by porras)

  20. spec2-mocks

    This library connects spec2.cr and mocks.cr, effectively enabling 'have_received' expectation for spec2.

  21. mass-spec

    Web API testing library

  22. webdriver_pump

    Page Object Model library for Crystal. A port (kind of) of Ruby's WatirPump

  23. spec

    Common/helpful Spec compliant testing utilities (by athena-framework)

  24. hashr

    Hashr is a tiny library makes test on JSON response easier, and can also be used as a models object. (by crystal-china)

  25. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Crystal Testing discussion

Log in or Post with

Crystal Testing related posts

  • Make Marten Web Framework work with minitest.cr

    2 projects | dev.to | 7 Jan 2025
  • Squirm - This was the night of the crawling terror!

    4 projects | /r/crystal_programming | 6 May 2023
  • Por que você deveria aprender Crystal?

    4 projects | dev.to | 18 Apr 2023
  • I finally figured out why should you be using Firefox over Brave

    3 projects | /r/privacy | 30 Aug 2022

Index

What are some of the best open-source Testing projects in Crystal? This list will help you:

# Project Stars
1 marionette 183
2 minitest.cr 147
3 webmock.cr 104
4 spec2.cr 103
5 spectator 102
6 crytic 67
7 coverage 64
8 vcr 58
9 spec-kemal 55
10 mocks.cr 54
11 LuckyFlow 51
12 power_assert.cr 41
13 microtest 31
14 crotest 28
15 selenium.cr 26
16 timecop.cr 19
17 mock 14
18 spec2-mocks 9
19 mass-spec 8
20 webdriver_pump 5
21 spec 3
22 hashr 1

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com