Skip to content

sdcTools/checkTauArgus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkTauArgus

This package contains test-scenarios for tauArgus which will be run directly using batch-files. Also the generation of valid batch-files using R-package sdcTable (>= 0.22.7) can be tested.

Installation

This package is not on CRAN and needs to be installed manually. The easiest way to do so is to run the following command from R:

devtools::install_github("sdcTools/checkTauArgus", build_vignettes=TRUE)

Note

You can have a look at the source code of this package directly here on github, however it should be mentioned that you only get 'correct' results once you create an R-package from this code. This is especially the case for hyperlinks in vignettes/*.Rmd files. These links only get resolved correctly once these markdown-files are compiled into html-output as it is done when the package is build.

Testing tau-Argus

Run pre-defined tests

The main function to perform (subsets) of pre-defined tests is checkArgus(), which requires the following parameters to be set:

  • tau_exe: a valid path to a tau-argus executable, e.g c:\\tauargus\\TauArgus.exe
  • what: a character vector defining which test-sets should be run. If this parameter equals everything, all tests are run. To find out, which testsets can be specified, the auxiliary function availableTests() may be used.
  • verbose: if TRUE, the verbosity-level while testing is increased, defaults to FALSE

Tests for the graphical user interface

Several test-instances have been set up which allow to test the functionality of the graphical user interface of tau-argus. To view the pre-defined tests, use function GUITests() which will open a browser tab showing the pre-defined UI-tests.

Adding Tests

Pre-defined tests

To add tests that can be run using checkArgus(), please file a pull-request against the master-branch of this repository. To file a pull request, you need to first fork this repository and then read here on how to create the actual request. This procedure is also described in detail in this document. The maintainers of this package will then update the repository by merging the pull-request.

A new set of tests can be made by creating a new folder under the inst/tests directory. The examples in the Batch and CreateBatch directories may used as starting points. Using the testthat-package, a lot of expect_xx()-functions may be used to formulate expectations on the output. To get more information about the functionality of this package, please have a look at the package documentation (help(pa=testthat)).

Adding GUI-Tests

To add instructions for additional tests for the graphical user interface, please file a pull-request (as described above) against the master branch of this repository by updating the package vignette located vignettes/GUItests.Rmd. Data used for the tests should go to the inst/doc directory.

Issues

Please notify us about bugs and issues by creating an issue at https://github.com/sdcTools/UserSupport/issues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages