Commit Graph

50 Commits

Author SHA1 Message Date
Richard Shank
52930d5d75 update Message::decode test 2014-05-07 14:26:22 -07:00
Robert Hafner
9d26773f7f use bin/php-cs-fixer instead of bundle version 2014-04-19 23:42:19 -07:00
Robert Hafner
9ad874d69e Use Composer provided phpunit for tests
This makes versioning pinning easier
2014-04-19 22:01:22 -07:00
Robert Hafner
767a9f0083 Updated to latest version of the DovecotTesting Package 2014-04-16 00:45:44 -07:00
Robert Hafner
1725eb2f8b Formatting! PSR Compliance 2014-04-16 00:35:51 -07:00
Robert Hafner
faaff0711d Added code coverage and styling tests, refactored
Added runTests.sh to wrap up a bunch of test starting functionality.
Moved SetupEnvironment.sh out of Bootstrap.php and into the runTests.sh
file.

Added Coverall support for line coverage.

Added php-cs-fixer for code styling testing.
2014-04-16 00:28:38 -07:00
Robert Hafner
ffeca296de Added back distinct IP address for Travis and Vagrant 2014-02-27 11:47:17 -08:00
Robert Hafner
56dc838df9 Updated to dovecottesting 1.2
This lets us simplify our test script by not having to care about
different ip addresses.
2014-02-27 00:12:28 -08:00
Robert Hafner
ef5f76d352 Added timezone and corrected path data
Adding a timezone prevents errors on misconfigured systems when
running, and the path correction automates the running of the dovecot
testing package between tests.
2014-02-27 00:11:19 -08:00
Robert Hafner
a2b41cd82c Added test to prevent fatal error in certain error conditions 2014-02-27 00:09:56 -08:00
Robert Hafner
550f3b62e0 Updated Fetch to use the DovecotTesting repository
Rather than ship with all of these files I’ve separated out the server
provisioning code from this repository.
2014-01-19 00:51:55 -08:00
Robert Hafner
7c9bc1d34f Lots more tests! 2013-12-18 16:16:33 -08:00
Robert Hafner
f0a4e29e3d Increased Dovecot's allowed connections for an individual IP address 2013-12-18 14:21:55 -08:00
Robert Hafner
47bfb26b34 Added tests for Expunge, getMailbox and setMailBox methods. 2013-12-18 14:21:33 -08:00
Robert Hafner
7af83a84db Added Message::getMessageBody tests, added better messages to existing assertions. 2013-12-11 23:57:25 -08:00
Robert Hafner
89efb38103 Removed unneeded cert
The current build script regenerates this each time, so it's no longer
needed.
2013-12-11 19:27:43 -08:00
Robert Hafner
4a6811a08c Added test suite for the Attachment class 2013-12-09 22:53:43 -08:00
Robert Hafner
fffa423429 Added additional Attachment test 2013-12-08 23:12:08 -08:00
Robert Hafner
59d5b8ffc8 Continued extended Message test suite 2013-12-08 22:48:50 -08:00
Robert Hafner
68af0ad11f Added more tests for the Message class 2013-12-08 21:59:41 -08:00
Robert Hafner
83a8a899be Added Message test structure, as well as a few initial tests. 2013-12-08 18:31:27 -08:00
Robert Hafner
6ad9945817 Corrected mailbox name in test, as well as number of messages in main inbox 2013-12-08 17:17:07 -08:00
Robert Hafner
10ec1b6a97 Updated test messages
During testing I realized that the transfer of messages to the test
server did not actually occur in the right order, which made some test
results counter intuitive. I've reshuffled the messages around so
things will make more sense.
2013-12-08 17:16:44 -08:00
Robert Hafner
f7436eee00 Made the getServer function static 2013-12-05 23:42:50 -08:00
Robert Hafner
9c6a14134b Removed unfinished test 2013-12-05 23:04:25 -08:00
Robert Hafner
6d7f966a86 Continued fleshing out the Server tests 2013-12-05 23:01:53 -08:00
Robert Hafner
cfc04ab69b Another attempt to make travis ci like me. 2013-12-05 17:11:19 -08:00
Robert Hafner
3749e70fa1 Added new connection tests to the ServerTest class 2013-12-05 17:11:07 -08:00
Robert Hafner
e8477204a3 Making another attempt to deal with the ssl issue 2013-12-05 15:29:04 -08:00
Robert Hafner
aab81066cc Stopping/Starting Dovecot before moving ssl cert 2013-12-05 14:45:56 -08:00
Robert Hafner
b7b7d54966 Attempting to deal with Dovecot/Travis issue by supplying an ssl cert 2013-12-05 14:39:02 -08:00
Robert Hafner
662ae64b66 Attempting to see if updating apt-get will resolve build error 2013-12-05 14:24:09 -08:00
Robert Hafner
59dd786f2e Tell travis to run commands as root. 2013-12-05 14:08:32 -08:00
Robert Hafner
2adbb68a54 Updated SetupEnvironment to use TRAVIS_BUILD_DIR to identify paths 2013-12-05 14:06:51 -08:00
Robert Hafner
01f5ad02a8 Created initial working test suite
So far it just tests some flags (which it already did) and then tests
connecting to the imap server itself.

The Attachment and Message tests are just stubs right now and don't do
anything, but need those stubs to let the tests occur.
2013-12-05 13:57:34 -08:00
Robert Hafner
554c22a363 Added some useful output to the phpunit bootstrap file 2013-12-05 13:50:36 -08:00
Robert Hafner
bdfb20f610 Updated the phpunit bootstrapper to initialize the environment. 2013-12-05 12:13:25 -08:00
Robert Hafner
6e6d66ed87 Created environment setup wrapper script
This script makes setting up the environment for testing easier. It
detects that it's on travis and creates the appropriate setup right
there, or on personal machines uses vagrant. If vagrant is running is
skips the full setup and simply resets the mailbox for fast testing.
2013-12-04 23:36:48 -08:00
Robert Hafner
bcf57ce903 Updated autoloader to support test cases, and bootstrapper to support composer autoloader 2013-12-04 23:34:08 -08:00
Robert Hafner
e6eb65fbd5 Shuffled testing scripts out of Vagrant folder and into their own space. 2013-12-04 21:57:51 -08:00
Robert Hafner
63ff9c9d3b Cleaned up VagrantFile formatting. 2013-12-01 23:06:31 -08:00
Robert Hafner
5d30c7eaa1 Added ResetMail.sh to Provision.sh script, cleaned formatting. 2013-12-01 23:06:18 -08:00
Robert Hafner
13514054d9 Updated system hostname to tedivm.com 2013-12-01 23:05:55 -08:00
Robert Hafner
63a358bcfa Added "ResetMail.sh" to handle refreshing the test inboxes before and between tests 2013-12-01 23:04:55 -08:00
Robert Hafner
2a1c46e48d Added test messages in
These messages are a dump of a "Maildir" account, managed by Dovecot.
2013-12-01 22:58:00 -08:00
Robert Hafner
efa2bd9a51 Added postfix config file to Vagrant to help populate mailboxes 2013-12-01 17:48:46 -08:00
Robert Hafner
ca5aaa6a36 Initial Vagrant setup 2013-12-01 15:53:05 -08:00
Patrik Karisch
7972b0c5d9 add unit tests for Server::setFlag()
add proper phpunit configuration
2013-07-11 00:19:47 +02:00
Robert Hafner
326142464f Corrected a comment on the bootstrap class in the test suite. 2012-06-11 00:39:12 -07:00
Robert Hafner
22eaf7238b Added testing structure and bootstrap class. 2012-06-11 00:06:19 -07:00