Skip to content

Rare failures of the unit tests #91

@bruc

Description

@bruc

As part of a new R environment, I've been repeatedly running the unit tests that come with XLConnect using the command, R CMD check --no-stop-on-test-error --no-examples --ignore-vignettes --no-manual --install=skip on version 0.2-15. A week ago, the test failed, but after rerunning the test, it succeeded.

I thought that this could be a problem that occurs occasionally depending on the test data values, so I ran the test 1151 times. Out of those 1151 tests, it failed 5 times. Here's an example failure message:

* checking tests ... ERROR
  Running ‘run_tests.R’
Running the tests in ‘tests/run_tests.R’ failed.
Last 13 lines of output:
  Number of test functions: 32 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  XLConnect Test Suite - 32 test functions, 0 errors, 1 failure
  FAILURE in test.writeWorksheetToFile: Error in checkEquals(normalizeDataframe(df), res, check.attributes = FALSE,  : 
    Component "Column.I": Mean absolute difference: 0.001000166
  
  Error in runUnitTests() : 
  
  Unit Testing failed (#test failures: 1, #R errors: 0)
  
  Execution halted
* DONE
Status: 1 ERROR

I can provide you the full set of files from the failed tests if you wish. Please let me know if you'd like me to include them on this issue or provide them in some other way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions