Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small additions for testing #566

Merged
merged 3 commits into from Jun 21, 2013
Merged

Small additions for testing #566

merged 3 commits into from Jun 21, 2013

Conversation

norv
Copy link
Contributor

@norv norv commented Jun 21, 2013

Quick and dirty: I'd rather make these changes, in particular the flag to disable tests by default, just to avoid running them inadvertently on a database. Tests should not use directly the installed database (use their own if any) and undo what they do, so that even between tests nothing is affected. I've been using SSI for starters, which is to say it's more integration tests (of the whole application).

  • I added a couple tests playing with database work functions. (the classes we have are a better choice!).
    Functions working with the db aren't exactly "units", but IMHO usefulness and trying to cover our code bypasses strictness on this. Test what we can and we're up to, and leave the strictness behind on this bit. Improve them as we go. But we need to be careful what we're running them on. (and leave the db in a consistent state)
  • Funnily enough, I didn't even start well (I don't think this is started yet), and dropped upon a bug with createPoll(), using it with default values yields db errors.

norv added 3 commits June 20, 2013 23:35
…l function because

test failed from the beginning with them. ;D

Signed-off-by: Norv <a.w.norv@gmail.com>
Signed-off-by: Norv <a.w.norv@gmail.com>
norv added a commit that referenced this pull request Jun 21, 2013
Small additions for testing
@norv norv merged commit c205fc7 into elkarte:master Jun 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant