Coder Social home page Coder Social logo

Comments (8)

pkrog avatar pkrog commented on June 17, 2024

There is a small section about running the RUnit tests inside the README file (See "Tests" chapter).
You have to run the script runit/batchcorrection_runtests.R. So the command is:

Rscript runit/batchcorrection_runtests.R

Give it a try and see if it prints you warning and/or errors.

from batch_correction.

melpetera avatar melpetera commented on June 17, 2024

Hi @pkrog
Thanks for the reply. The problem is that in the dev branch, you made some changes to the runitfolder (now called "test") but no update of the batchcorrection_runtests.R. It seems there are quiet a few changes to be done but I am not familiar with this. The files in the res folder (that seems to correspond to the old output one) are quite different from the previous ones. I imagine that the test scripts would need quite a few changes? But again, I am not familiar with this testing process so even if I tryed investigating the question looking at the old and new versions of this testing suit, I am a little confused here...
Any suggestion?

from batch_correction.

pkrog avatar pkrog commented on June 17, 2024

I've looked at your branch Dusting_and_update, but I don't see the test folder, or the runit folder.

from batch_correction.

melpetera avatar melpetera commented on June 17, 2024

Yes, in fact I have just removed it a few minutes ago in 1944b07 : I was about to make a comment about it when someone grabbed me for an unplanned meeting.

Truth is I have a training next week, so I was going to suggest to remove the tests for now to be able to validate a version I hope to get on prod instance quickly, and then to create a dedicated Runit branch based on first a reverse commit of 1944b07

This way I can make people use the latest fonctionalities next week and have a dedicated branch for the RUnit question.

Is this ok for you?

from batch_correction.

pkrog avatar pkrog commented on June 17, 2024

It's better to let the folder inside the project, and comment out the code that runs it.
Inside the file .travis.yml, just comment out the following line:

    - PLANEMO=

but left unchanged the line with PLANEMO=yes,
and those tests won't be run on Travis.

from batch_correction.

melpetera avatar melpetera commented on June 17, 2024

Are you sure? Wouldn't it be a problem since it is going to be merged then in the master branch and then put in the main Galaxy toolshed? I have no doubt it will be no problem to pass Travis tests and no impact on the tool run is expected. However I am not too sure whether a public deposit with not-functionnal RUnit tests is a good idea.

Or maybe there are common ways to tag part of the content to be an "in progress" stuff that should not be taken into consideration by people that would get the latest prod version deposit? I am not very familiar to common practices regarding this kind of things.

from batch_correction.

pkrog avatar pkrog commented on June 17, 2024

The galaxy toolshed is another thing, when you publish your tool into it, you must not put this test folder since it will not be used by Galaxy. Only the tests inside the XML and the test-data folder go into the Galaxy toolshed.
You won't put the Travis files (.travis.yml and travis-tests) either inside the Galaxy toolshed by the way, nor the Makefile file.
So, yes, it's OK if you let the folder test as is, and comment out the line inside .travis.yml.

from batch_correction.

melpetera avatar melpetera commented on June 17, 2024

Okay, thank you! I will make the modifications accordingly.

from batch_correction.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.