diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-04-20 18:24:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-04-20 18:24:07 +0000 |
commit | af474609e3e80db9ba1d16b9ad2eae89775f51c8 (patch) | |
tree | e525479dd6381b94d21943c3d2decf1c749c028c /modules/simpletest/files | |
parent | fe7b9baff62379f5a0c901d27cbb677345791bd0 (diff) | |
download | brdo-af474609e3e80db9ba1d16b9ad2eae89775f51c8.tar.gz brdo-af474609e3e80db9ba1d16b9ad2eae89775f51c8.tar.bz2 |
- Added a test framework to Drupal along with a first batch of tests for
Drupal core! This is an important milestone for the project so enable
the module and check it out ... :)
Thanks to Rok Žlender, Károly Négyesi, Jimmy Berry, Kevin Bridges, Charlie
Gordon, Douglas Hubler, Miglius Alaburda, Andy Kirkham, Dimitri13, Kieran
Lal, Moshe Weitzman, and the many other people that helped with testing
over the past years and that drove this home.
It all works but it is still rough around the edges (i.e. documentation
is still being written, the coding style is not 100% yet, a number of
tests still fail) but we spent the entire weekend working on it in Paris
and made a ton of progress. The best way to help and to get up to speed,
is to start writing and contributing some tests ... as well as fixing
some of the failures.
For those willing to help with improving the test framework, here are
some next steps and issues to resolve:
- How to best approach unit tests and mock functions?
- How to test drupal_mail() and drupal_http_request()?
- How to improve the admin UI so we have a nice progress bar?
- How best to do code coverage?
- See http://g.d.o/node/10099 for more ...
Diffstat (limited to 'modules/simpletest/files')
-rw-r--r-- | modules/simpletest/files/README.txt | 5 | ||||
-rw-r--r-- | modules/simpletest/files/html-1.txt | 1 | ||||
-rw-r--r-- | modules/simpletest/files/html-2.html | 1 | ||||
-rw-r--r-- | modules/simpletest/files/image-1.png | bin | 0 -> 64027 bytes | |||
-rw-r--r-- | modules/simpletest/files/image-2.jpg | bin | 0 -> 6218 bytes | |||
-rw-r--r-- | modules/simpletest/files/javascript-1.txt | 3 | ||||
-rw-r--r-- | modules/simpletest/files/javascript-2.script | 3 | ||||
-rw-r--r-- | modules/simpletest/files/php-1.txt | 3 | ||||
-rw-r--r-- | modules/simpletest/files/php-2.php | 3 | ||||
-rw-r--r-- | modules/simpletest/files/sql-1.txt | 1 | ||||
-rw-r--r-- | modules/simpletest/files/sql-2.sql | 1 |
11 files changed, 21 insertions, 0 deletions
diff --git a/modules/simpletest/files/README.txt b/modules/simpletest/files/README.txt new file mode 100644 index 000000000..d808510da --- /dev/null +++ b/modules/simpletest/files/README.txt @@ -0,0 +1,5 @@ +$Id$ + +These files are use in some tests that upload files or other operations were +a file is useful. These files are copied to the files directory as specified +in the site settings. Other tests files are generated in order to save space.
\ No newline at end of file diff --git a/modules/simpletest/files/html-1.txt b/modules/simpletest/files/html-1.txt new file mode 100644 index 000000000..494470d17 --- /dev/null +++ b/modules/simpletest/files/html-1.txt @@ -0,0 +1 @@ +<h1>SimpleTest HTML</h1>
\ No newline at end of file diff --git a/modules/simpletest/files/html-2.html b/modules/simpletest/files/html-2.html new file mode 100644 index 000000000..494470d17 --- /dev/null +++ b/modules/simpletest/files/html-2.html @@ -0,0 +1 @@ +<h1>SimpleTest HTML</h1>
\ No newline at end of file diff --git a/modules/simpletest/files/image-1.png b/modules/simpletest/files/image-1.png Binary files differnew file mode 100644 index 000000000..f2aac9800 --- /dev/null +++ b/modules/simpletest/files/image-1.png diff --git a/modules/simpletest/files/image-2.jpg b/modules/simpletest/files/image-2.jpg Binary files differnew file mode 100644 index 000000000..645c76b50 --- /dev/null +++ b/modules/simpletest/files/image-2.jpg diff --git a/modules/simpletest/files/javascript-1.txt b/modules/simpletest/files/javascript-1.txt new file mode 100644 index 000000000..e0206ba83 --- /dev/null +++ b/modules/simpletest/files/javascript-1.txt @@ -0,0 +1,3 @@ +<script> +alert('SimpleTest PHP was executed!'); +</script>
\ No newline at end of file diff --git a/modules/simpletest/files/javascript-2.script b/modules/simpletest/files/javascript-2.script new file mode 100644 index 000000000..e0206ba83 --- /dev/null +++ b/modules/simpletest/files/javascript-2.script @@ -0,0 +1,3 @@ +<script> +alert('SimpleTest PHP was executed!'); +</script>
\ No newline at end of file diff --git a/modules/simpletest/files/php-1.txt b/modules/simpletest/files/php-1.txt new file mode 100644 index 000000000..dc8e64213 --- /dev/null +++ b/modules/simpletest/files/php-1.txt @@ -0,0 +1,3 @@ +<?php +print 'SimpleTest PHP was executed!'; +?>
\ No newline at end of file diff --git a/modules/simpletest/files/php-2.php b/modules/simpletest/files/php-2.php new file mode 100644 index 000000000..dc8e64213 --- /dev/null +++ b/modules/simpletest/files/php-2.php @@ -0,0 +1,3 @@ +<?php +print 'SimpleTest PHP was executed!'; +?>
\ No newline at end of file diff --git a/modules/simpletest/files/sql-1.txt b/modules/simpletest/files/sql-1.txt new file mode 100644 index 000000000..22017e972 --- /dev/null +++ b/modules/simpletest/files/sql-1.txt @@ -0,0 +1 @@ +SELECT invalid_field FROM {invalid_table}
\ No newline at end of file diff --git a/modules/simpletest/files/sql-2.sql b/modules/simpletest/files/sql-2.sql new file mode 100644 index 000000000..22017e972 --- /dev/null +++ b/modules/simpletest/files/sql-2.sql @@ -0,0 +1 @@ +SELECT invalid_field FROM {invalid_table}
\ No newline at end of file |