gfritz / FEC-py-DB

Fritz-Eldridge-Cold (author-author-mascot) DBMS written in Python 2.7. While we do not ignore performance, we are more focused on learning HOW a DBMS works by building our own.
MIT License
0 stars 0 forks source link

How much of a testing framework do we want? #4

Open gfritz opened 10 years ago

gfritz commented 10 years ago

We should at least have unit tests, for sanity checks. We could use unittest if we wanted to keep it simple. It is built in to 2.7.

If we wanted to go with more Behavior Driven Development, there is Behave. It is entirely in Python (so they say, never checked every line), and it has Gherkin style syntax.

Thoughts?

EdgeCaseBerg commented 10 years ago

I haven't used many test frameworks. I've used rails rspec and guard before, but for all the python I've done I've generally written my own testing with asserts everywhere to guarantee the code performs correctly. What's Gherkin style?

gfritz commented 10 years ago

Gherkin is a syntax that lets you write "stories." Capybara was the language that I used when I did rails and guard.

EdgeCaseBerg commented 10 years ago

I've used Capybara a little bit. So Gherkin is that style of syntax? That sounds fine to me.

On Thu, Aug 22, 2013 at 8:20 AM, Garth Fritz notifications@github.comwrote:

Gherkin is a syntax that lets you write "stories." Capybara was the language that I used when I did rails and guard.

— Reply to this email directly or view it on GitHubhttps://github.com/gfritz/FEC-py-DB/issues/4#issuecomment-23085802 .

~Ethan J. Eldridge Programmer | Computer Scientist Former UVM CS Crew Executive Triumvirate Member Former UPE UVM Chapter President

gfritz commented 10 years ago

http://cukes.info/gherkin.html

EdgeCaseBerg commented 10 years ago

Gherkin kinda looks like it's really easy to write. and then possibly a pain to code for. Not sure yet though. It's worth a try at least :)