João Moura
952ab0438f
AMS Benchmark tests #832
...
Adding a benchmak test structure to help contributors to keep track
of how their PR will impact overall performance.
It enables developers to create test inside of tests/benchmark.
This implementation adds a rake task: ```rake benchmark``` that checkout
one commit before, run the test of tests/benchmark, then mover back to
the last commit and run it again. By comparing the benchmark results between
both commits the contributor will notice if and how much his contribution
will impact overall performance.
2016-03-09 12:42:25 -06:00
Ben Mills
cc10928472
Provide Rails url_helpers via SerializationContext
2016-03-07 10:40:34 -07:00
Benjamin Fleischer
042ec38b40
Escape paths in rake isolated for directory with spaces and parens
2016-02-26 14:14:00 -06:00
Benjamin Fleischer
f1b3fe6a37
Fix rubocop config
...
`undefined method '[]' for nil:NilClass`
2016-02-11 00:51:23 -06:00
Benjamin Fleischer
509221c1e0
Only call railtie when Rails is defined; assume controller loaded
...
Isolated Testing
- Rake test inspired by https://github.com/rails/rails/blob/v5.0.0.beta1/activejob/Rakefile
- Isolated unit inspired by
- https://github.com/rails/rails/blob/v5.0.0.beta1/railties/test/isolation/abstract_unit.rb
- https://github.com/rails/rails/blob/v5.0.0.beta1/activemodel/test/cases/railtie_test.rb
Misc
- Turns out `mattr_accessor(:logger) {
ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(STDOUT)) }`
was always nil until the Railtie was loaded, since mattr_accessor
block defaults don't really work on modules, but on the classes that
include them.
- Commented on important on Rails being required first for caching to
work.
- In isolated tests, `active_support/core_ext/object/with_options` is required.
2016-01-15 01:54:07 -06:00
Benjamin Fleischer
9e3cf0241d
Separate default rake from rake ci
2015-10-22 10:45:24 -05:00
Mauro George
c7b8c54952
Change default rake task to run test and rubocop
...
The rubocop only runs in the CI this way a contributor probably will see a
rubocop offense only in the CI.
Running the rubocop in the default rake task we have more chance that a offense
be get in the local machine.
2015-10-01 19:52:14 -03:00
Benjamin Fleischer
94469be1ca
Add test coverage; account for no artifacts on CI
...
Drop coverage a bit for JRuby and Rubinius because they
don't generate the same Coverage as CRuby
2015-09-06 09:19:07 -05:00
Benjamin Fleischer
c39c20d4a4
Add no-op rubocop for rbx
2015-09-04 02:32:16 -05:00
Benjamin Fleischer
09c97de90d
Add Style enforcer (via Rubocop)
...
It will fail the build, but as it is currently,
most of the cops are 'todos'. Great for new contributors.. :)
2015-09-03 20:50:45 -05:00
Steve Klabnik
c6eea916ad
Move serializer tests into their own directory.
...
It'd be nice to keep some hygene here.
2014-07-09 16:19:02 -04:00
Steve Klabnik
729a823868
Getting started: attributes.
...
Super super basic collection of attributes. Nothing fancy.
2014-07-09 16:16:39 -04:00
Steve Klabnik
4fc0f679df
Add generators.
...
This seemed like the easiest place to start.
2014-07-05 12:35:29 -04:00
Steve Klabnik
99e3d0f70b
Set up minitest
2014-07-05 11:55:45 -04:00
Steve Klabnik
8a20377239
Set up gemspec, version, and .travis.yml
2014-07-05 00:56:57 -04:00
Steve Klabnik
c718915075
Generate a basic gem
2014-07-05 00:53:48 -04:00