Rspec-style integration tests #83

Open
joelmccracken opened this Issue Jan 20, 2013 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

joelmccracken commented Jan 20, 2013

Hello again!

I like end-to-end feature tests, but I favor more rspec-style specs than writing many tests with gherkin. Gherkin is great for some uses, but it does have its limitations

I've worked on some systems (https://github.com/joelmccracken/elspec and https://github.com/uk-ar/el-spec) for writing these tests, but to be honest, I think ecukes would be a better place to focus my energies.

There are many problems that really similar between each environment, such as managing the emacs session in which components are executed, etc. Additionally, I seems like espuds could be usefully decoupled from gherkin.

So, what do you think? Should I start investigating adding a nice rspec-like DSL for unit testing / specific integration testing?

Contributor

rejeep commented Jan 20, 2013

I think I have discussed this with someone here some time ago...

Take a look at this page: https://github.com/jnicklas/capybara#using-capybara-with-rspec You can either write tests with describe / it or with feature, scenario and background. What's you plan?

Anyhow, I like what you getting at.

Contributor

joelmccracken commented Jan 21, 2013

Great. This makes sense. Basically, I don't have any plan yet. I will probably get started on sketching an implementation soon.

I remember talking with you about running separate stories in separate emacs processes. Is that implemented yet?

Contributor

rejeep commented Jan 21, 2013

Nope, still open (rejeep#62). I guess the reason is because I haven't found this to be that big a an issue. The worst case for me has been to reset some variables. But of course, it's a lot better to always have a clean setup. Once I have the time and energy, I will get to it.

Keep me posted on your sketches!

Contributor

joelmccracken commented Jan 21, 2013

Sounds good. It seems relevant to what I want to do, but who knows. At any
rate, I think the first step would be to implement the spec DSL, so I will
do that.

On Mon, Jan 21, 2013 at 3:09 AM, Johan Andersson
notifications@github.comwrote:

Nope, still open (#62 rejeep#62). I
guess the reason is because I haven't found this to be that big a an issue.
The worst case for me has been to reset some variables. But of course, it's
a lot better to always have a clean setup. Once I have the time and energy,
I will get to it.

Keep me posted on your sketches!


Reply to this email directly or view it on GitHubhttps://github.com/rejeep/ecukes/issues/83#issuecomment-12487898.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment