You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Todd Nine (JIRA)" <ji...@apache.org> on 2014/12/12 00:55:14 UTC

[jira] [Commented] (USERGRID-273) Cleanup test harness and create a more declarative test framework

    [ https://issues.apache.org/jira/browse/USERGRID-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243392#comment-14243392 ] 

Todd Nine commented on USERGRID-273:
------------------------------------

Done with serial and parallel execution first pass.  Starting on decoupling spring from the CassandraResource now.

> Cleanup test harness and create a more declarative test framework
> -----------------------------------------------------------------
>
>                 Key: USERGRID-273
>                 URL: https://issues.apache.org/jira/browse/USERGRID-273
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>            Reporter: Todd Nine
>            Assignee: Todd Nine
>
> Currently our test harnesses are a mess of spaghetti.  We need to decouple this mess, and allow us to cleanly define the rules and requirements of our system.  I think we need to break it down into the following behaviors.
> h1. Test Execution Environments
> h2. Parallel Execution
> This should be the default behavior.  All tests are assumed to be parallel
> h2. Serial Execution
> This should be the exception, and only used when parallel execution cannot be accomplished.  Tests in this classification should run in a method at a time, with no concurrency
> h1. External resources
> h2. Cassandra
> # Configure the runtime
> # Pre invocation hook
> ## Create default implementation of truncating column families.  This should be manually added, and not execute by default.
> # Post invocation hook
> h2. ElasticSearch 
> # Configure the runtime
> # Pre invocation hook
> ## Create default implementation of truncating column families.  This should be manually added, and not execute by default.
> # Post invocation hook
> h1. Lifecycle
> A test itself can have numerous lifecycle operations.  These should be set up as rules, both class and instance, and should NOT be done via inheritance of abstract tests.  This is the old Junit3 way of operating, and needs removed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)