Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
59d477c5
Commit
59d477c5
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added delete dit step
parent
8ef9a575
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/PipelineStatusTest.scala
+6
-2
6 additions, 2 deletions
...t/scala/nl/lumc/sasc/biopet/core/PipelineStatusTest.scala
with
6 additions
and
2 deletions
biopet-core/src/test/scala/nl/lumc/sasc/biopet/core/PipelineStatusTest.scala
+
6
−
2
View file @
59d477c5
...
...
@@ -8,6 +8,7 @@ import org.scalatest.testng.TestNGSuite
import
org.testng.annotations.Test
import
PipelineStatusTest.Status
import
nl.lumc.sasc.biopet.utils.IoUtils._
import
org.apache.commons.io.FileUtils
/**
* Created by pjvan_thof on 10-1-17.
...
...
@@ -16,21 +17,23 @@ class PipelineStatusTest extends TestNGSuite with Matchers {
@Test
def
testDefault
()
:
Unit
=
{
val
outputDir
=
Files
.
createTempDir
()
outputDir
.
deleteOnExit
()
PipelineStatusTest
.
writeDepsToDir
(
outputDir
)
PipelineStatus
.
main
(
Array
(
"-o"
,
outputDir
.
toString
,
"-d"
,
outputDir
.
toString
))
checkOutput
(
outputDir
)
FileUtils
.
deleteDirectory
(
outputDir
)
}
@Test
def
testDepsFileArg
()
:
Unit
=
{
val
outputDir
=
Files
.
createTempDir
()
outputDir
.
deleteOnExit
()
val
depsfile
=
PipelineStatusTest
.
writeDepsToDir
(
outputDir
)
PipelineStatus
.
main
(
Array
(
"-o"
,
outputDir
.
toString
,
"-d"
,
outputDir
.
toString
,
"--depsFile"
,
depsfile
.
toString
))
checkOutput
(
outputDir
)
FileUtils
.
deleteDirectory
(
outputDir
)
}
def
checkOutput
(
outputDir
:
File
,
...
...
@@ -83,6 +86,7 @@ class PipelineStatusTest extends TestNGSuite with Matchers {
@Test
def
testDeps
()
:
Unit
=
{
val
depsFile
=
File
.
createTempFile
(
"deps."
,
".json"
)
depsFile
.
deleteOnExit
()
PipelineStatusTest
.
writeDeps
(
depsFile
,
new
File
(
"/tmp"
))
val
deps
=
PipelineStatus
.
readDepsFile
(
depsFile
)
...
...
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