Top 22 Crystal Testing Projects
-
-
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.
-
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"
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
-
-
-
-
spec2-mocks
This library connects spec2.cr and mocks.cr, effectively enabling 'have_received' expectation for spec2.
-
-
-
-
hashr
Hashr is a tiny library makes test on JSON response easier, and can also be used as a models object. (by crystal-china)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Crystal Testing discussion
Crystal Testing related posts
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 |