similar to: Test Driven Development in R

Displaying 20 results from an estimated 3000 matches similar to: "Test Driven Development in R"

2012 Mar 02
1
seeing feedback when R CMD check pkg runs unit tests.
good day here, I'm maintaining a couple of R modules, both on r-forge. tests for these modules are written making use of unit testing, and I make use of the svUnit module, part of SciViews-R. I also make use of examples in the .Rd files. my question regards 'R CMD check pkg'. if an _example_ is not run correctly, I get clear feedback on the command line where I run 'R CMD
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
2011 Feb 05
1
Reading a specific file during "R CMD check"?
Hello, All: How can I obtain the location of an example data file in a package during "R CMD check"? I want to include sample raw data files in a package and have them read by a function in the package. It occurs to me to put such a file in "\inst\rawdata" and have examples find the data using something like "system.file('rawdata',
2006 May 13
9
Is test driven development for newbies?
I''m still reading other people''s code and going over the books. As I was doing this a question sprang up in my mind. Is it wise for total newbies to attempt test driven development from the start? Basically, if you''re a newbie like me, chances are your tests might even be broken themselves. Or will attempting to write tests be good practice for actual coding as
2007 Mar 24
0
Using spec fixtures with integration tests
Hi all, How can I use spec fixtures with rails integration tests ? I''ve tried adding {{ fixtures "../../spec/fixtures/myfixture" }} to the integration test but the fixtures are not loaded when I run the rake task. Rails doesn''t load symlinked fixtures either so I copied the files from spec/fixtures for the time being. Not very DRY. Any ideas ? Keith
2009 Jan 15
2
R package tests
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering if anyone could point me in the right direction for reading up on writing tests in R. I'm writing some functions for inclusion into a package and would like to test them to ensure they're doing what I expect them to do. Are these approaches used for testing packages in CRAN? Cheers, Nathan - -- -
2006 Nov 21
10
Rspec Brown Bag
Hello, I''m scheduled to give a rspec brown bag this Wednesday (11/22) for my company (Pivotal Computer Systems, http://www.pivotalsf.com). I did see Dave Astel''s talk as well as several of my coworkers. The developers at my workplace are experienced Agile developers. What would be some good things to focus on for this brown bag? Are there slides to presentations that would be
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
2007 Sep 16
10
I lost the RSpec fight
I''ve been working on a Rails project with one other developer; he was using Test::Unit, and I was using RSpec. That works OK for a while, but obviously it starts causing pain when you have to check in two places to see if a piece of code is properly tested/spec''d, you can''t use TextMate shortcuts to switch back and forth between code and test, you have to duplicate
2010 Aug 05
1
Sciviews-K -- object 'httpdPort' not found
Hi, I'm trying to install Sciviews-K on Linux Ubuntu 9.10 (karmic) but I'm not able to establish the connection between Komodo and R. Here;s the error I get, plus some diagnostic info: R version 2.9.2 (2009-08-24) R is SciViews ready! Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :   object 'httpdPort' not found > ls() [1] "svStart" > Sys.info()
2007 May 30
4
Using mocks
I''ve just started doing TDD/BDD and like the idea of mocks. So I set out to use them. The doc pages seem great, I setup the mock and then it just works. Here is what I am trying to do: Myuser is a non-rails model of user attributes. We are going to be mocking the connection to the ldap server. The user class has a login method that connects to the ldap server and if successful,
2006 Jul 29
2
comments on my first context
I have been curious about rSpec for a while, so I thought I''d give it a try... I started reading Ron Jeffries'' articles on Sudoku (http://www.xprogramming.com/xpmag/OkSudoku.htm), and noticed he was doing TDD, I thought, this would be fun to do with BDD... Can you comment on the following? (note that I added a method in the Game class called cells which return @cells) to make
2009 Sep 02
0
Opening for Senior Web Developer (Ruby on Rails)
CastleRock Research Information Pvt. Ltd. is looking for talented Senior Web Developer with a history of commercial product & consumer- oriented web application design and high-end development and exposure to the full project life cycle. The successful candidate must have an excellent working knowledge of software design patterns, best practices followed in development cycle, a clear
2006 Aug 28
1
slightly different view
All, One of the things I learned when I started to do TDD was that you should write enough tests to give you the courage to move forward. For some, that results in more tests than others. In approaching BDD, my initial thinking was to write examples for all of the possible behaviours in every context. I''ve had a change of thinking on this. Please check out my blog on it and let me know
2007 Mar 24
15
State Based vs. Behaviour Based Spec/Testing
I''ve notice that a project like Rubinius has both a spec & a test directory. Rspec has only a spec directory. Obviously I support BDD, but isn''t there also a place for state based/verification testing? I sometimes sense that I *do* want to practice Test Driven Development. That is, I want some assurance that my production code will run as intended. But I also
2007 Jul 06
5
Outside-In with RSpec on Rails
I just read ''Mocks Aren''t Stubs'' and was intrigued by the notion of ''outside-in'' TDD. As a Rails developer, I''m curious if others are employing this method when developing Rails applications using RSpec. Is it common practice (or even practical) to drive the development of a Rails app by starting with view specs, then controller specs, then
2013 Oct 18
1
Rails 4 + AngularJs (unembedded client) integration sample
Hi everybody, I''m experimenting with Rails and AngularJs (as unembedded client) and decided to upload to a public github repository my efforts. Of course, everything is just a toy application I use to experiment and test on various stuff (there''s absolutely no production ready nor TDD/BDD backed code). As of now a very basic login/signup feature is implemented and
2007 Aug 08
3
rspec with autotest on a windows machine
Hello all, I''m new to rSpec but after reading a couple of tutorials I''ve become enamored. Anyway, I am at minute 42 of the rSpec basics screencast ( peepcode.com) and I''m having the following error running autotest w/rSpec: D:\ruby\projects\forecaster>autotest loading autotest/rails_rspec c:\ruby\bin\ruby -rrubygems -e "require ''redgreen''"
2011 Nov 07
1
Missing public folder
Hi i am using dovecot 2.0.13 and i can't see public folder in my mail client. But what is strange, it was working after instalation, and i don't know when it dissapeared. Maybe after some upgrade ? When i enable debug, then i can see in my log that folder exists and no errors. Please where should i find the problem ? Thanks Martin Here is log Nov 7 11:00:27 OVZ dovecot:
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
Here I am, trying to learn TDD and BDD. Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts ''hi'' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures: 1) VideosController new exposes request and response before and