Skip to content

Add tests#29

Merged
kescobo merged 8 commits into
mainfrom
cherry-picking
Oct 1, 2025
Merged

Add tests#29
kescobo merged 8 commits into
mainfrom
cherry-picking

Conversation

@danielle-pinto
Copy link
Copy Markdown
Contributor

In this PR:

  • Fixed some bugs to ensure the single-end pipeline works properly
  • Added tests:
    • End-to-end testing and validate output for single-end pipeline
    • End-to-end testing and validate output for paired-end pipeline

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to integrate CI, but can also remove if it's annoying to keep getting errors every time we push a commit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests executed properly. For some reason the test run in the second image was processing more slowly yesterday. Not sure if that was due to some other jobs on the cluster taking up resources. The test had no problem executing, though.

Comment thread main.nf
.fromPath("${params.readsdir}/${params.filepattern}", checkIfExists: true)
.map { file ->
def sample = file.baseName // ERR3405856.fastq -> ERR3405856
def sample = file.baseName.replaceFirst(/(\.fastq|\.fq)$/, '') // ERR3405856.fastq -> ERR3405856
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this because just baseName was just removing .gz when the filename ended with fastq.gz.

@kescobo kescobo linked an issue Sep 30, 2025 that may be closed by this pull request
@kescobo
Copy link
Copy Markdown
Contributor

kescobo commented Sep 30, 2025

OK, so the tests work locally, but #30 is still open?

@danielle-pinto
Copy link
Copy Markdown
Contributor Author

Yes, I created this issue because I think it will be hard to fully use CI with Github unless we create a docker environment that can be used on the Github servers. Last time we chatted you said that may be out of scope, but we can definitely revisit.

@kescobo
Copy link
Copy Markdown
Contributor

kescobo commented Oct 1, 2025

It's definitely doable, but yes, out of scope.

@kescobo kescobo merged commit eb328d6 into main Oct 1, 2025
0 of 2 checks passed
@danielle-pinto danielle-pinto deleted the cherry-picking branch October 1, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests

2 participants