-
Notifications
You must be signed in to change notification settings - Fork 297
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
basic tests of the public facing HTTP interface. refs #16, #113, #342… #536
Conversation
…https://github.com/mro/ShaarliOS/issues/1 Transferred from https://github.com/mro/Shaarli-API-test, could become a git module for version-independant compatibility tests.
It's very good! But we can't disable PHP 5.3 since we still support it. Ping @virtualtam for CI tools stuff. |
while I'm a big fan of conservative and long-term backward compatibility (as you know) – 5.3 had it's EOL years ago. For how long do you think will shaarli continue to officially support 5.3? P.S.: |
The last question goes to @ArthurHoaro, @nodiscc and @virtualtam |
Hem... there is actually a discussion #250 where we decided "OK! let's drop PHP 5.3 compatibility." and then merged a PR for PHP 5.3 compatibility. ¯_(ツ)_/¯ |
I argue for unconditional tests. |
Theoretically, I'd go towards dropping support for any PHP version that has reached its end-of-life period (currently 5.3 and 5.4). For now, the development efforts to support older PHP versions is minimal (mostly array declaration syntax) but might grow as times goes. When we'll start using more recent core features (e.g. namespaces) and third-party libraries for templating, testing and other purposes, we'll need to drop support to ageing platforms. As far as tests are concerned, we should rather update the Travis matrix and start using PHPUnit's test suite features, to distinguish unitary and functional tests and run them separately. This will allow for a more selective test coverage (currently, 5.5, 5.6 and 7.x matter). |
See mro/Shaarli#2 |
this PR ages. Mind https://github.com/mro/Shaarli-API-test/commit/9ddfc884ea45 due to changed HTTP GET parameters on failed logins in 52ccf0d. |
@ArthurHoaro is there anything that prevents a soon merge? |
Once introduced, test suites tend to grow quite fast. By experience, Bash scripts are just a pain in the arse to scale and maintain, as things quickly turn either tricky or unreadable (e.g. booleans, variable scope, string operations). There's still a long way to go before having a clean codebase (see #324), I'd rather not have to maintain both legacy code and a blob of scripts (and so might other maintainers). There are more suitable community frameworks dedicated to running browser test suites over web applications, such as:
|
I agree with @virtualtam. While it's great to have your tests around, I'd rather not have to maintain them. I think functional tests will be more pertinent when most of the refactoring will be completed. |
@ArthurHoaro thank you for your kind words, but this is quite a disappointment, especially given your initial reaction #536 (comment) In essence this sounds to me like there's at this time no interest in an even minimal stable HTTP interface (check login state, post a link). This is IMO a disastrous signal to all 3rd party tool authors. |
👍 @mro if you want to maintain this test suite in a repo under the Shaarli org please let us know |
…, https://github.com/mro/ShaarliOS/issues/1
Transferred from https://github.com/mro/Shaarli-API-test, could become a git module for version-independant compatibility tests.