fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

[FAS3] - Test Suite #218

Closed skrzepto closed 3 years ago

skrzepto commented 7 years ago

Focus of this testsuite is on functional testing.

Current output 25 passed, 5 skipped in 6.45 seconds

The skipped tests are current bugs in the program that need to be fixed.

Current Limitations


Squashed commits

skrzepto commented 7 years ago

I have the test suite run in Vagrant in a separate table. It seems to be the cleanest solution to test with an actual pgsql db that doesn't require internet connection.

skrzepto commented 7 years ago

@laxathom @pypingou Any thoughts on the test suite?

laxathom commented 7 years ago

While I like the idea of having the test suite vagrand-ready, I tend to say we should also provide a way to perform it w/o it like if we need to run the test suite from a CI system, I'm not sure vagrant is supported yet in such env.

skrzepto commented 7 years ago

@laxathom the test suite is able to run locally but you need to create the postgres table for it and modify to the development.ini file to use pgsql. So for example how I have it so far is if in the development.ini file has a sqalchmey url use pgsql with table name fas. The test suite appends test to table database name so user needs to create fastest table database to use for the test suite. Thats the only limitation.

laxathom commented 7 years ago

hm...can we maybe instead use another db name with _test rather than appending word to _test to all tables?

skrzepto commented 7 years ago

@laxathom just noticed i used the wrong name. I meant database instead of table. Hopefully that clears somethings up