db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DerbyJunitTestConfiguration" by DanDebrunner
Date Mon, 16 Oct 2006 21:17:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DanDebrunner:
http://wiki.apache.org/db-derby/DerbyJunitTestConfiguration

------------------------------------------------------------------------------
  http://mail-archives.apache.org/mod_mbox/db-derby-dev/200609.mbox/%3c451C1CDF.7050706@apache.org%3e
  
  Tests can fall into any of the following categories:
+  * embedded & client - runs fixtures in both configurations, some fixtures may only
run in a single configuration due to items not supported in a configuration, bugs in a configuration
or no value in running the fixture in that configuration.
   * embedded only - E.g. testing triggers may not provided additional testing by running
with the network client
   * client only - E.g. specific testing of a client data source
-  * embedded & client - runs fixtures in both configurations, some fixtures may only
run in a single configuration due to items not supported in a configuration, bugs in a configuration
or no value in running the fixture in that configuration.
+ 
+ Here are examples of how to write the `suite()` method for the test class `MyTest` for various
combinations.
+ Any tests that are added into a suite without any client server decorator will run as embedded.
+ 
+ === All test fixtures running as embedded and client ===
+ {{{
+ public Test suite() {
+    return TestConfiguration.defaultSuite(MyTest.class);
+ }
+ }}}
+ 
+ === All test fixtures running only as embedded ===
+ {{{
+ public Test suite() {
+    return TestConfiguration.embeddedSuite(MyTest.class);
+ }
+ }}}
+ 
+ === All test fixtures running only as client ===
+ {{{
+ public Test suite() {
+    return TestConfiguration.clientServerSuite(MyTest.class);
+ }
+ }}}
  
  == Suites ==
  

Mime
View raw message