Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
fc9898f9
Commit
fc9898f9
authored
17 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
ignores migration folder
SVN: 2794
parent
fe176f36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java
+7
-1
7 additions, 1 deletion
...ce/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java
with
7 additions
and
1 deletion
common/source/java/ch/systemsx/cisd/common/db/SqlUnitTestRunner.java
+
7
−
1
View file @
fc9898f9
...
...
@@ -45,6 +45,7 @@ import ch.systemsx.cisd.common.utilities.OSUtilities;
* ...
* ...
* </pre>
* Folder starting with '.' or <code>migration</code> are ignored.
* The test cases are executed in lexicographical order of their name. For each test case <code>buildup.sql</code>
* will be executed first. The test scripts follow the naming schema
* <pre>
...
...
@@ -63,6 +64,9 @@ import ch.systemsx.cisd.common.utilities.OSUtilities;
*/
public
class
SqlUnitTestRunner
{
/** Name of ignored migration folder. */
public
static
final
String
MIGRATION_FOLDER
=
"migration"
;
private
static
final
class
TestResult
{
private
final
boolean
ok
;
...
...
@@ -135,7 +139,9 @@ public class SqlUnitTestRunner
{
public
boolean
accept
(
File
pathname
)
{
return
pathname
.
isDirectory
()
&&
pathname
.
getName
().
startsWith
(
"."
)
==
false
;
String
name
=
pathname
.
getName
();
return
pathname
.
isDirectory
()
&&
name
.
startsWith
(
"."
)
==
false
&&
name
.
startsWith
(
MIGRATION_FOLDER
)
==
false
;
}
});
Arrays
.
sort
(
testCases
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment