History.markdown in infinity_test-0.2.0 vs History.markdown in infinity_test-1.0.0

- old
+ new

@@ -1,6 +1,89 @@ -Master Branch (in development) +v1.0.0 +============== + +Features +-------- + +- Added the RVM System Wide support (For more information see http://rvm.beginrescueend.com/deployment/system-wide/ ) + +- Added the Heuristics feature(<b>For users who want to add your own paths</b>) +This example tell to InfinityTest <b>run all the tests when some_file.rb is changed</b> +This basic DSL you will put in the <b>infinity_test file</b>: + + heuristics do + add('some_file.rb') do |file| + run :all => :tests + end + end + +If you want run only the similar test file you can do too: + + heuristics do + add('some_file.rb') do |file| + run :test_for => file + end + end + +If you want run only the similar test in some dir, you can do too: + + heuristics do + add('some_file.rb') do |file| + run :test_for => file, :in_dir => :models + end + end + +If you want run all tests in a particular dir, you can do too: + + heuristics do + add('some_file.rb') do |file| + run :all => :tests, :in_dir => :controllers + end + end + +You can pass an array of dirs too (w00t!!): + + heuristics do + add('some_file.rb') do |file| + run :all => :tests, :in_dir => [:controllers, :models] + end + end + +- Support Bundler: +The InfinityTest try to discover If the user have a Gemfile in the project root and +if Gemfile exists InfinityTest will run with "bundle exec #{command}" else will run "command" normally. + +Obs.: <b>In any case, you don't want this "magic" just run infinity_test with --skip-bundler flag. +Or write this in .infinity_test file:</b> + + # ~/.infinity_test or ./.infinity_test + infinity_test do + skip_bundler! + end + +- Support Bacon - for more information see - http://github.com/chneukirchen/bacon (thanks to Ng Tze Yang) +If you want run with Bacon just run with --bacon flag or add :test_framework => :bacon to infinity_test file + +- Possible to setup the lib pattern, test pattern (thanks to Jason Rogers). + + # ~/.infinity_test or ./.infinity_test + infinity_test do + before_env do |application| + application.test_framework.test_directory_pattern = "^my_unusual_spec_directory/unit/(.*)_spec.rb" + application.test_framework.test_pattern = "my_unusual_spec_directory/unit/*_spec.rb" + application.library_directory_pattern = '^my_unusual_lib_directory/*/(.*).rb' + end + end + +OBS.: <b>The #before_env methods is an alias to #replace_patterns method</b> + +Refactoring +----------- + +- Refactoring all the tests frameworks to become more easier to add a new test library + +v0.2.0 ============================== Features -------- @@ -11,10 +94,11 @@ # ~/.infinity_test or ./.infinity_test infinity_test do before(:each_ruby) do |environment| environment.ruby('some_ruby_file') # run a ruby file in each ruby that you setup environment.rake('Rakefile', 'compile') # run rake compile in each ruby that you setup + environment.system('rake compile') # or with system command end after(:each_ruby) do |environment| ... end @@ -39,6 +123,6 @@ * Support Rspec 2 or Rspec 1.3. * Put some images to show in the notifications. * Create the hooks in before all the test and after all tests. * Create the notifications DSL for the .infinity_test file. -* Possible to run with Test::Unit or Rspec with RVM. \ No newline at end of file +* Possible to run with Test::Unit or Rspec with RVM.