Displaying 20 results from an estimated 8000 matches similar to: "Unit Testing Frameworks: summary and brief discussion"
2004 Aug 09
2
Approaches to using RUnit
Having used JUnit and PyUnit, I was pleased to see the release of the
RUnit package on CRAN.
I'm wondering if there are any RUnit users out there that would be
willing to share some tips on how they organize their code to work with
RUnit.
Specifically, I'm wondering about the best way to load/import/source the
functions to be tested. I would like to end up with a script, testall
or some
2006 Mar 23
4
ANN: capistrano-runit-tasks 0.2.0
I''d like to announce the second release of capistrano-runit-tasks,
available from http://rubyforge.org/projects/cappy-runit/
It now supports:
* File based templates
* sv as the service control command in addition to runsvctrl
* A much simpler interface for creating additional services.
More work still needs to be done though!
== TODO
* Allow add_service to create more than one
2010 Apr 22
2
RUnit bug?
There appears to be a bug in RUnit.
Given a testsuite testsuite.math, say, when I run:
runTestSuite(testsuite.math)
this works fine, provided there are no extraneous files in the
unit test subdirectory.
But if there are any Emacs temp files (with names that
end with '~') then runTestSuite gets confused and tries to
run functions from the temp files as well.
[[alternative HTML version
2004 Mar 17
3
unit testing framework for R?
In a quick search of the R website just now, I found no mention of
a unit testing framework for R. I hope to find something
in the style of Java's JUnit, or Python's unittest. Is such a
thing available?
Thanks,
- Paul Shannon
Institute for Systems Biology
Seattle
2006 Mar 18
2
ANN: capistrano-runit-tasks 0.1.0
I''d like to announce the first release of capistrano-runit-tasks.
This came about as I wanted to use runit rather than spinner/spawner/
reaper on my memory limited VPS but should be useable for any setup.
From the README:
This library extends Capistrano to allow processes to be supervised
using the
runit package. It replaces some of the standard tasks with runit
versions and
2012 May 17
2
test suites for packages
Can anyone share some opinions on test suites for R packages?
I'm looking at testthat and RUnit. Does anyone have strong opinions on
either of those.
Any additional packages I should consider?
Thanks,
Whit
2013 Jan 14
1
Issue with getParserData in R3.0.0
Hello,
I am migrating my package lambda.r to R3.0.0 and am experiencing some issues with the getParserData function (which replaces the parser package). Basically the function works in the R shell but fails when either called from RUnit or from R CMD check.
I've narrowed it down to the function getSrcfile, which is returning different values depending on the code path. From the command line
2004 Oct 05
1
R 2.0.0: problem: installing --with-package-versions
Hello R developers,
installing R 2.0.0 from source on a Linux Debian system (gcc 3.2.2)
- which worked just fine - I encountered the following problem when trying to
update/install packages with the option --with-package-versions:
example: RUnit 0.4.0 (also on CRAN)
R20 CMD INSTALL -l /mnt/local/R/R-2.0.x-libs-EpiR --with-package-versions
RUnit_0.4.0.tar.gz
or after untaring
R20 CMD INSTALL
2007 Sep 05
2
RUnit testing with R CMD check and more (was: R CMD check recursive copy of tests/)
Hello!
I have looked at Martin's recent work on "merging" unit tests with R CMD check,
fused it with my and Tony's contributions and developed it a bit further. Take
a look into the attached demo package on how it works.
In essence:
PKG/inst/RUnitTests
|- runRUnitTests.R (script to run RUnit tests)
\- ... (any RUnit test file)
1997 Apr 28
3
R-alpha: R-0.49: 2 problems
I found the following 2 problems (no debugging, sorry).
* qt(0.975, 3) never returns.
Can someone please check that? Happens for me on Debian GNU/Linux/ix86
compiled with CFLAGS="-O2 -g".
* Yet another stupid way to cause a segfault:
R> x
Error: Object "x" not found
R> debug(t.test)
R> t.test(rnorm(10))
debug: choices <- c("two.sided",
2009 Jul 10
1
RUnit detects parse error, but why?
Folks,
An RUnit test suite is failing after all tests are complete with the
following message:
Error in parse(n = -1, file = file) : unexpected '}' at
620:
621: }
All individual tests work when run individually, and all but one run
within the RUnit test suite. What might be causing this?
A similar error message during package creation was discussed earlier
2007 Apr 02
2
(Newbie)Basic Basic global vs. local variables
My R code has got too complex to have a non-modular approach. Ive done some
coding in other languages before, but I somehow cant figure out R's general
rules for global and local variables. I have put a simple code below, if
anyone can show me what i need to add to make this work, i would greatly
appreciate it!
#----------------------------------------
g_Means<-numeric()
2006 Aug 05
1
R CMD check and RUnit
Hi!
I appologize for crossposting, but this might be of broader interest.
In case you are interested in fusing RUnit with R CMD check under unix
alike OS, here is one way of doing/hacking this.
My aim was to perform unit tests:
(1) during R CMD check
(2) at any other time
Say you have a package PKG in a map PKG. I use the following structure
PKG
|- R
|- ...
|- inst
| |- doc
| `-
2009 Dec 31
1
what don't I get about numeric/double comparisons in R way?
Hi,
I'm pretty much an R noob and I'm missing some paradigm in R I think.
I can't figure our how to compare numerics. here's a transcript of my
tests. Any pointers?
> print(range_sd)
[1] 34.40783
> is.numeric(range_sd)
[1] TRUE
> is.numeric(foo)
[1] TRUE
> is.double(range_sd)
[1] TRUE
> is.double(foo)
[1] TRUE
>
> identical(range_sd, foo)
[1]
2015 Jul 01
4
dovecot-lmtp
Hi, I'm trying to use dovecot-lmtp so that I can filter messages with
sieve, however it doesn't appear to be working.
I followed the instructions on wiki2.dovecot.org. I'm running Debian
Wheezy. I've got runit configured to execute postfix and dovecot, which
may be the source of the problem (runit executes /usr/sbin/dovecot -F).
I've got mail_debug turned on and there is
2013 May 20
2
Unicorn + RUnit Rails Not Killing Old Master
Hi,
I''m deploying Unicorn on a Rails application with RUnit. Technically
I''m using Chef''s deployment tools, if any of you are familiar with it
(https://github.com/opscode-cookbooks/application_ruby) but to be clear
they aren''t doing anything magical, so this is purely an issue with
RUnit and Unicorn.
The TL;DR of the following post, which has lots of
2004 Jun 09
4
how to initialize random seed properly ?
I want to start R processes on multiple processors from single shell
script
and I want all of them to have different random seeds.
One way of doing this is
sleep 2 # (with 'sleep 1' I am often getting the same number)
...
set.seed(unclass(Sys.time()))
Is there a simpler way without a need to sleep between invoking
different R processes ?
Ryszard
2009 Oct 05
3
unit testing for R packages?
Hi All,
I'm interested in putting some unit tests into an R package I'm
building. I have seen assorted things such as Runit library, svUnit
library, packages
with 'tests' directories, etc
I grep'd "unit test" through the writing R extensions manual but didn't find
anything. Are there any suggestions out there? Currently I have
several (a lot?) classes/methods
2006 Feb 04
1
RUnit - need advice on a good directory structure or tips...
I made my own RUnit testing convention, and I want to introduce this to one
of my friends.
Before that, I'd like to review my codes.
The problem that I met when I tried to polish my codes is: How can I get the
file path in the file???
I.e., I want to get the path to the file that I'm writing using some magic R
functions. But I couldn't find any good magic.
Is there any magic?
So, I
2008 Mar 23
2
Can not install fCalendar package under R 2.6.2
Dear R helper:
When I was trying to install the fCalendar package, R report the
following error and then my installation failed:
* Installing *source* package 'fCalendar' ...
** R
** inst
** preparing package for lazy loading
Loading required package: MASS
Loading required package: fEcofin
Loading required package: fUtilities
Loading required package: RUnit
RUnit 0.4.17 loaded.