Skip to content

RScore has a main to run tests#17

Closed
TheoPannetier wants to merge 56 commits intodevelopfrom
unit_test
Closed

RScore has a main to run tests#17
TheoPannetier wants to merge 56 commits intodevelopfrom
unit_test

Conversation

@TheoPannetier
Copy link
Member

Fix:

Depends on:

There is no reason for unit tests to be done through one of the interfaces - they should instead be run within the core code directly, so that we are confident that the tests hold true for all interfaces.

To enable this, I have written a simple main to allow RScore to run on its own without an interface.
main only runs the unit tests, and exits with 0 if all tests complete successfully (or 1 otherwise).
The tests themselves are only drafts so far, I will populate the test functions with unit tests this week.

Having RScore running on its own also enables continuous integration, so I deployed it (check.yml, see the successful build here).

Comment on lines +113 to +116

if (gen.trait1Chromosome) {
pGenome = new Genome(pSpecies->getNChromosomes(), pSpecies->getNLoci(0),
pSpecies->isDiploid());
Copy link
Member Author

Choose a reason for hiding this comment

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

git is getting confused from here onwards, but all I did was fix the indentation, and remove the commented out DEBUGLOG lines. Jump to the bottom to see the draft test!

@TheoPannetier TheoPannetier changed the title Unit test RScore has a main to run tests Nov 28, 2023
minor changes (references to other repositories, added roles of maintainers (Theo RScore + batch & Jette RScore + R package), emphasized contacting developer team for new features
@TheoPannetier
Copy link
Member Author

main and GHA workflow have been deployed, but unit tests are not yet ready. Closing this for now!

TheoPannetier added a commit that referenced this pull request Apr 17, 2024
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.

2 participants