Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing strategy #33

Closed
waddella opened this issue Jul 30, 2021 · 4 comments
Closed

testing strategy #33

waddella opened this issue Jul 30, 2021 · 4 comments
Assignees

Comments

@waddella
Copy link
Collaborator

waddella commented Jul 30, 2021

@maximilianmordig please join the discussion

@waddella waddella changed the title testing testing strategy Jul 30, 2021
@maximilianmordig
Copy link
Contributor

Where is the discussion taking place?
This seems to be related to #37.

@waddella
Copy link
Collaborator Author

waddella commented Aug 5, 2021

we also need unit tests. Please propose a design pattern to test the framework without accessing the internet.

maximilianmordig added a commit that referenced this issue Aug 11, 2021
@nikolas-burkoff
Copy link
Contributor

nikolas-burkoff commented Aug 18, 2021

Some thoughts here:

  • Easier to test after Major refactor #83
  • Adding more unit tests into code base - some functions in utils.R and branching_strategy.R are ready for testing - in other cases we can refactor out logic like done here - some added in
    Major refactor #83
  • Add code into the github action to run some integration tests for example checking out the stageddeps.X packages and running install_deps, build, check etc. on them - issue Add end to end test into staged.deps github action #87
  • The code using git doesn't know about the rest of the package (and can be tested separately - we could have a dummy repo or we could rely on above to check it's working) so we can mock out the git stuff to test the graph building - may want some small refactors to make that easier some of this done in Major refactor #83
  • Having the option to choose a caching directory could then enable us to test parts of the code which use it - this is done in Major refactor #83
  • Add validation tests to check argument validation is working on the main exported function - issue Add tests for invalid input arguments for main exported functions #89

@nikolas-burkoff
Copy link
Contributor

Done - see comment above

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

No branches or pull requests

3 participants