mendicant-original / newman

Newman: a microframework for building email-based applications.
116 stars 11 forks source link

Started test suite #1

Closed dtykocki closed 12 years ago

dtykocki commented 12 years ago

This is my first open source commit, so any feedback is welcome!

practicingruby commented 12 years ago

@dtykocki,

I left a bunch of comments through your commit, but basically, here's what I'd like to see.

1) a single commit adding *.swp to the .gitignore

2) a commit which adds the following things

= A test/suite.rb file whose job is to explicitly require each test file, i.e:

require_relative "helper"

require_relative "units/server_test"
require_relative "units/controller_test"
#...

= A test/helper.rb file which is exactly like the one you provided

= One stub file for each of newman's objects in test/units/object_name.rb which fails, i.e:

# in test/units/server_test.rb

require_relative "../helper"

describe Newman::Server do
  it "should have tests" do
    flunk
  end
end

= An updated gemspec which add purdytest

3) A feature patch which replaces some of the configuration open structs with ordinary Ruby objects that have a validate() method, and will raise an error when the required options are not set. Feel free to leave that to me if it's not clear what I'm looking for, though.

Thanks!

dtykocki commented 12 years ago

Awesome, thanks for going over all of this. I'll try to make some time this weekend to work on your suggestions. Thanks again.

practicingruby commented 12 years ago

@dtykocki: Great! I may end up working on this myself if I end up working on the code this weekend, since it is needed. But I can leave a comment here if that ends up being the case, and if you get to it first and just leave a comment when you're starting your work on this we'll avoid duplicating each others efforts. So please do let me know if you find time for it.

Technically I'm supposed to be taking a couple days off to rest, so you may well beat me to it :)

practicingruby commented 12 years ago

@dtykocki: I'm going to start working on this soon, but let me know in the next half hour or so if you have unpushed work that you want to send my way.

dtykocki commented 12 years ago

I haven't worked on anything as of yet. Been busy moving into a new place
plus no internet.

Connected by DROID on Verizon Wireless

-----Original message----- From: Gregory Brown
<reply+i-3082307-3283df4e955d570ea3154eafb297929a7da822c6-343419@reply.github ..com> To: Doug Tykocki dtykocki@omegafi.com Sent: Sun, Feb 5, 2012 22:24:21 GMT+00:00 Subject: Re: [newman] Started test suite (#1)

@dtykocki: I'm going to start working on this soon, but let me know in the
next half hour or so if you have unpushed work that you want to send my way.


Reply to this email directly or view it on GitHub: https://github.com/mendicant-university/newman/pull/1#issuecomment-3821337

ericgj commented 12 years ago

I like purdytest's output, but it forces you to use the gem version of minitest < 1.9.3 (at least on the 1.9.2 I'm running, there's no MiniTest::Unit.output). We could do something like gem "minitest" if RUBY_VERSION < '1.9.3' in the test helper I guess.

practicingruby commented 12 years ago

I'll just lock to the most recent version of minitest... since we're not totally self-contained it doesn't hurt to pull in one more gem anyway.