| 1 |
-------------- |
| 2 |
Maven SCM Jazz Provider - TCK Test Implementation Details. |
| 3 |
-------------- |
| 4 |
Chris Graham |
| 5 |
-------------- |
| 6 |
2012-03-19 |
| 7 |
-------------- |
| 8 |
|
| 9 |
~~ Licensed to the Apache Software Foundation (ASF) under one |
| 10 |
~~ or more contributor license agreements. See the NOTICE file |
| 11 |
~~ distributed with this work for additional information |
| 12 |
~~ regarding copyright ownership. The ASF licenses this file |
| 13 |
~~ to you under the Apache License, Version 2.0 (the |
| 14 |
~~ "License"); you may not use this file except in compliance |
| 15 |
~~ with the License. You may obtain a copy of the License at |
| 16 |
~~ |
| 17 |
~~ http://www.apache.org/licenses/LICENSE-2.0 |
| 18 |
~~ |
| 19 |
~~ Unless required by applicable law or agreed to in writing, |
| 20 |
~~ software distributed under the License is distributed on an |
| 21 |
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 22 |
~~ KIND, either express or implied. See the License for the |
| 23 |
~~ specific language governing permissions and limitations |
| 24 |
~~ under the License. |
| 25 |
|
| 26 |
~~ NOTE: For help with the syntax of this file, see: |
| 27 |
~~ http://maven.apache.org/doxia/references/apt-format.html |
| 28 |
|
| 29 |
TCK Tests |
| 30 |
|
| 31 |
The TCK test the actual implementation of the SCM APIs by calling the provider implementations via JUnit tests. |
| 32 |
|
| 33 |
Jazz TCK Test Setup |
| 34 |
|
| 35 |
The Jazz TCK tests are enabled by enabling the <<<tck-jazz>>> profile. This can be done by <<<mvn -Ptck-jazz ...>>>. |
| 36 |
|
| 37 |
The Jazz TCK tests require three system properties to be defined. These properties can be defined in your local |
| 38 |
<<<settings.xml>>> file or from the command line, via <<<-D>>>. The latter option may be needed if running the |
| 39 |
TCK tests as JUnit tests from inside Eclipse. |
| 40 |
|
| 41 |
* tckBaseDir |
| 42 |
|
| 43 |
This property must be defined to define where the test snapshot is to be loaded into. Due to the |
| 44 |
sandbox in a sandbox issue, this must be outside of the existing source tree. This property will |
| 45 |
still need to be set if Eclipse is being used, and the Eclipse Workspace is a sandbox. |
| 46 |
|
| 47 |
* tckSnapshotName |
| 48 |
|
| 49 |
This is the name of an existing snapshot on the Jazz SCM server that is used to load the sandbox |
| 50 |
used to conduct that TCK tests. This snapshot needs to be created independently of these TCK tests. |
| 51 |
At the current time, creating a repository workspace with a named component (as opposed to a default |
| 52 |
one; which causes duplicates when run more than once) is not supported by the Jazz SCM CLI tool. |
| 53 |
Therefore a snapshot, with the appropriate contents, will need to be created before running these |
| 54 |
TCK tests, and its name set to the value of the <<<tckSnapshotName>>> property. |
| 55 |
|
| 56 |
* tckUrl |
| 57 |
|
| 58 |
This property defines the initial part of the SCM URL that points to the server used to perform the TCK tests against. |
| 59 |
For example: |
| 60 |
|
| 61 |
+--- |
| 62 |
scm:jazz:Deb;Deb@https://rtc:9444/jazz:MavenSCMTCKTestWorkspace |
| 63 |
+--- |
| 64 |
|
| 65 |
This is part of the usual SCM URL for Jazz. However, this value is appended with <<<System.currentTimeMillis()>>> |
| 66 |
as part of the repository workspace name to guarantee uniqueness. A new repostory workspace is created for |
| 67 |
each TCK test as it is being run. |
| 68 |
|
| 69 |
The <<<tckSnapshotName>>> is loaded into the <<<tckBaseDir>>> location from the server referenced in the <<<tckUrl>>> |
| 70 |
property. |
| 71 |
|
| 72 |
Jazz creates some challenges for the existing TCK tests. |
| 73 |
|
| 74 |
* Jazz always has an initial baseline. This maps to a revision. SCM's such as SVN/CVS etc, around which |
| 75 |
the SCM API's and corresponding TCK tests assume that there is no initial revision. |
| 76 |
|
| 77 |
* Jazz has no equivalent of a SVN/CVS style <<<add>>> command, whereby you can add a file to a SCM, ie |
| 78 |
indicate that it is to be added, and not commit it. |
| 79 |
|
| 80 |
Fully implemented Jazz TCK tests. |
| 81 |
|
| 82 |
* JazzBlameCommandTckTest |
| 83 |
|
| 84 |
* JazzCheckOutCommandTckTest |
| 85 |
|
| 86 |
Functional but failing Jazz TCK tests. |
| 87 |
|
| 88 |
* JazzChangeLogCommandTckTest |
| 89 |
|
| 90 |
* JazzCheckInCommandTckTest |
| 91 |
|
| 92 |
* JazzDiffCommandTckTest |
| 93 |
|
| 94 |
* JazzStatusCommandTckTest |
| 95 |
|
| 96 |
* JazzTagCommandTckTest |
| 97 |
|
| 98 |
* JazzUpdateCommandTckTest |
| 99 |
|
| 100 |
[] |
| 101 |
|
| 102 |
The underlying Jazz SCM CLI tool does have issues with adding or checking in files that are in the sandbox root. |
| 103 |
Several work items have been opened against the Jazz SCM CLI tool to address these issues. |
| 104 |
When these work items have been addressed, the Jazz SCM provider should be fully able to support the SCM API and |
| 105 |
these TCK tests. |
| 106 |
|
| 107 |
Cleaning Up |
| 108 |
|
| 109 |
Currently, we can not delete Jazz SCM repository objects using the Jazz SCM CLI tool. A work item has been opened |
| 110 |
to address this. When this functionality is present, then the removeRepo() method in the TCK tests can be used |
| 111 |
to perform a cleanup. Until that time, the repository workspaces that are created using these TCK tests will need |
| 112 |
to be removed using the Eclipse client that has the full functionality to do so. |
| 113 |
|