You can clone with
No one assigned
Running the testsuite must be as easy as possible.
Ideally a make check rule to run all tests, including preparation.
Env variables can be used to specify the database access params and the preparation script must ensure to survive if the database already exist.
If preparation is impossible a message could be printed warning and suggesting how to run more tests
I agree with you. Test suite a bit too hard to run. What I'd actually like to do is remove the dependency on Make entirely. It'd be nice to be able to run the tests on windows.
I definitely want it to be user friendly as possible. More so than now even. I just was thinking Makefile is not really as user friendly as say some Grunt tasks only because Make doesn't exist on windows and isn't even installed with mysysgit. I tried out grunt on a personal project recently and thought the results were pretty good. What do you think about grunt for doing testing, test environment setup, and even to spit instructions out to the console?
maybe npm test could be the entry point for running the test suite.
Does node-postgresql have the ability to create databases ?
@strk What do you mean by "create databases"? You could of course use the CREATE DATABASE query:http://www.postgresql.org/docs/9.0/static/sql-createdatabase.html
I think we should add a make check target to the make file. Make check, npm test and make test should all execute the same command.
We should start caring about the windows guy/devs if they start to contribute to free software ;)
Why closed ? There still isn't a "make check" rule :)
@booo yeah, I guess we can use CREATE DATABASE sql query.
The idea is that "make check" creates a temporary db, runs all tests and then drops it.
We now have a "prepare-test-db" rule assuming the db is already available, so we need a couple more rules one to create the db and one to drop it afterwards.. It usually gets too complex for a Makefile and I end up using a shell script (invoked by Makefile..)
whoops - I thought the prepare-test-db rule and the make check rule where the same.