Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • SUNSET SUNSET
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • SUNSETSUNSET
  • Merge requests
  • !17

Develop unittest

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged aho requested to merge develop-unittest into master Jun 29, 2022
  • Overview 5
  • Commits 10
  • Pipelines 2
  • Changes 8

Hi @vagudets @lpalma @nperez

As discussed in the last meeting, I built up CI/CD here and created the folder tests/ and sub-folders and files. After we merge this branch, the unit tests will run automatically every time a push to gitlab happens (e.g., https://earth.bsc.es/gitlab/es/auto-s2s/-/jobs/19775)

Under tests/, I separated seasonal and decadal tests (test_seasonal.R and test_decadal.R) so they can run at the same time. We can add the sub-seasonal one in the future. The testing recipes are stored under tests/recipes/ and the testing scripts are under tests/testthat/.

I've created one testing script for decadal monthly case and test_decadal.R is done. You can take them as reference to modify the seasonal files (I created them but they're empty now.)

The structure can be modified if you see anything that can be improved. We can go through this in the meeting next week.

Cheers,
An-Chi

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-unittest