rack-test
timecop
Our great sponsors
rack-test | timecop | |
---|---|---|
2 | 4 | |
916 | 3,334 | |
0.1% | - | |
3.9 | 6.1 | |
about 1 month ago | 22 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rack-test
-
Test Driving a Rails API - Part Two
In this part, we’ll set up our testing environment so that we can test our Rails API using minitest with minitest/spec. We’ll look at the differences between traditional style unit tests and spec-style tests, or specs. I’ll demonstrate why you should use minitest-rails. We’ll look at using rack-test for testing our API. We’ll even create our own generator to generate API specs.
-
Application-as-a-Function Thinking
The "app-as-function" has some very concrete applications though, even outside languages like Haskell. The [rack-test](https://github.com/rack/rack-test) gem (and similar languages) work exactly like this: they run the "app" part without the "web server" part to enable much easier testing. Rack middlewares similarly treat the enclosed app as just a function taking some specified input and returning some output value.
timecop
-
About time: how to unit test code that depends on time
The Ruby equivalent is Timecop
https://github.com/travisjeffery/timecop
Dynamic languages have the advantage to be able to rewrite the standard library classes at runtime.
-
What questions do you consider important for a Ruby on Rails technical interview?
vs https://github.com/travisjeffery/timecop yes it's true and i am happy to show everybody that they don't need timecop in rails test suite anymore.
- What are your top useful gems?
-
Travel in time in development/staing/... in your Rails app
I believe you already familiar with the gem https://github.com/travisjeffery/timecop which is very useful for testing.
What are some alternatives?
http4k - The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.
Parallel Tests - Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
minitest-rails - Minitest integration for Rails
vcr - Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
R Spec - A minimalist RSpec clone with all the essentials. [Moved to: https://github.com/cyril/r_spec-clone.rb]
Knapsack - Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
mutant - Automated code reviews via mutation testing - semantic code coverage.
Spring - Rails application preloader
Ruby-JMeter - A Ruby based DSL for building JMeter test plans
Zapata - An Automatic Automated Test Writer
power_assert - Power Assert for Ruby
Ruby Tests Profiling Toolbox - Ruby Tests Profiling Toolbox