Test::Inline 2.001 released!

Alias on 2005-06-10T17:10:46

Well, 2 years and 1 month after I start out to take Schwern's Test::Inline idea and do it properly, Test::Inline 2 is now out.

This is inline unit testing done right. Write little chunks of testing code anywhere you like in your code, across as many different modules as you like.

Run one command, and it all gets munged into a set of test scripts, and executed. The tests support test and class level dependencies, and you can plug a Test::Inline 2 system into just about anything.

As a promotional demonstration, here is a test run output from my current work project.

Apart from the ordinary numbered tests, the ones in the auto directory were built from inline tests in our code generation system, and the inline directory contains a second set of inline testing at customisation stage.

adam@red:~/DDS/trunk/t$ ./all 00_legacy/20050200......................ok 00_legacy/20050300......................ok 01_compile..............................ok 02_integrity............................ok 03_database_integrity...................ok 04_library_apis.........................ok 05_pod..................................ok 06_code_symbols.........................ok 07_templates............................ok auto/dds__entity........................ok auto/dds_base...........................ok auto/dds_config.........................ok auto/dds_data__simple...................ok auto/dds_data__string...................ok auto/dds_data_boolean...................ok auto/dds_data_datetime..................ok auto/dds_data_integer...................ok auto/dds_data_list......................ok auto/dds_data_longstring................ok auto/dds_data_shortstring...............ok auto/dds_db.............................ok auto/dds_db_config......................ok auto/dds_db_schema......................ok auto/dds_entity_account.................ok auto/dds_entity_auditentry..............ok auto/dds_entity_billing.................ok auto/dds_entity_billingitem.............ok auto/dds_entity_franchise...............ok auto/dds_entity_location................ok auto/dds_entity_make....................ok auto/dds_entity_newcar..................ok auto/dds_entity_newsale.................ok auto/dds_entity_product.................ok auto/dds_entity_screen..................ok auto/dds_entity_session.................ok auto/dds_entity_staff...................ok auto/dds_entity_usedcar.................ok auto/dds_entity_usedsale................ok auto/dds_field..........................ok auto/dds_html...........................ok auto/dds_html_form......................ok auto/dds_html_messagewidget.............ok auto/dds_info...........................ok auto/dds_info_account...................ok auto/dds_info_billing...................ok auto/dds_info_franchise.................ok auto/dds_info_location..................ok auto/dds_info_make......................ok auto/dds_info_product...................ok auto/dds_info_session...................ok auto/dds_info_staff.....................ok auto/dds_interface_role_gridlayout......ok auto/dds_interface_time_businesshour....ok auto/dds_output.........................ok auto/dds_property.......................ok auto/dds_relation.......................ok auto/dds_sql............................ok auto/dds_sql_clause.....................ok auto/dds_sql_collection.................ok auto/dds_sql_condition..................ok auto/dds_sql_fetch......................ok auto/dds_sql_math.......................ok auto/dds_sql_method.....................ok auto/dds_sql_query......................ok auto/dds_sql_storable...................ok auto/dds_template.......................ok auto/dds_template_label.................ok auto/dds_template_view..................ok auto/dds_time...........................ok auto/dds_util...........................ok auto/dds_web_form.......................ok auto/dds_web_input......................ok auto/dds_web_page.......................ok inline/dds_component_vehicle............ok 75/283 skipped: various reasons inline/dds_entity_newcar................ok inline/dds_entity_newcar_table..........ok inline/dds_entity_newcar_workflow.......ok inline/dds_entity_newsale...............ok inline/dds_entity_newsale_table.........ok inline/dds_entity_staff.................ok inline/dds_entity_usedcar_table.........ok inline/dds_info_newcar..................ok inline/dds_web_application..............ok inline/dds_web_application_new..........ok inline/dds_web_screen_newcar............ok inline/dds_web_screen_newsale...........ok inline/dds_web_screen_tradein...........ok All tests successful, 75 subtests skipped. Files=87, Tests=14421, 100 wallclock secs (85.18 cusr + 6.22 csys = 91.40 CPU)



adam@red:~/DDS/trunk/t$ sloccount .

SLOC Directory SLOC-by-Language (Sorted) 4810 auto perl=4810 1064 top_dir perl=1063,sh=1 760 inline perl=760 264 00_legacy perl=264 0 CVS (none)

Totals grouped by language (dominant language first): perl: 6897 (99.99%) sh: 1 (0.01%)

Total Physical Source Lines of Code (SLOC) = 6,898 Please credit this data as "generated using David A. Wheeler's 'SLOCCount'." adam@red:~/DDS/trunk/t$