File tree Expand file tree Collapse file tree
src/test/scala/io/viash/platforms/nextflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,14 +213,19 @@ class Vdsl3StandaloneTest extends AnyFunSuite with BeforeAndAfterAll {
213213
214214
215215 test(" Whether integers can be converted to doubles" , NextflowTest ) {
216+ // create params.yaml file
217+ val paramsPath = temporaryFolder.resolve(" params.yaml" )
218+ val paramsStr = """ id: foo
219+ |input: resources/lines3.txt
220+ |double: 10
221+ |publish_dir: integerAsDouble
222+ |""" .stripMargin
223+ Files .write(paramsPath, paramsStr.getBytes(StandardCharsets .UTF_8 ))
224+
216225 val (exitCode, stdOut, stdErr) = NextflowTestHelper .run(
217226 mainScript = " target/nextflow/integer_as_double/main.nf" ,
218- args = List (
219- " --id" , " foo" ,
220- " --input" , " resources/lines3.txt" ,
221- " --double" , " 10" , // this should be an integer
222- " --publish_dir" , " integerAsDouble"
223- ),
227+ args = Nil ,
228+ paramsFile = Some (paramsPath.toString()),
224229 cwd = tempFolFile
225230 )
226231
You can’t perform that action at this time.
0 commit comments