Skip to content

Fix unit tests #40

Closed
Closed

Description

@GegznaV

I installed unmixR locally. I ran the unit tests in two ways and they failed on my machine.

  1. unmixR.unittest()
Details

image

  1. devtools::test()
Details Results (truncated):
ℹ Testing unmixR
✔ | F W S  OK | Context
...
────────────────────────────────────────────────────
...
✖ | 2   2   7 | vca [0.2s] 
────────────────────────────────────────────────────

Error (vca.default.R:76:7): correct results for all available methods: triangle data
Error in `vca.default(.testdata$x, p = 3, method = i)`: object '.Random.seed' not found
Backtrace:
 1. testthat::expect_equal(...)
      at unmixR/R/vca.default.R:76:6
 5. unmixR::vca.default(.testdata$x, p = 3, method = i)
      at unmixR/R/vca.R:63:2
...
Error (vca.default.R:104:5): vca output is sorted
Error in `vca.default(.testdata$x, p = 3)`: object '.Random.seed' not found
Backtrace:
 1. unmixR::vca(.testdata$x, p = 3)
      at unmixR/R/vca.default.R:104:4
 2. unmixR::vca.default(.testdata$x, p = 3)
      at unmixR/R/vca.R:63:2
────────────────────────────────────────────────────
✖ | 1       5 | simplex_volume                      
────────────────────────────────────────────────────
Failure (simplex.R:106:5): correct volumes for triangle data
simplex_volume(triangle_2d, factorial = FALSE) not equal to `area_2d`.
1/1 mismatches
[1] 1 - 0.5 == 0.5

...

══ Results ═════════════════════════════════════════
Duration: 0.8 s

── Skipped tests  ──────────────────────────────────
• known issue: #36 (1)
• LDU skipped: known issue #38 (2)
• temporarily disabled (1)

[ FAIL 3 | WARN 0 | SKIP 4 | PASS 49 ]

Can these be fixed, @rguliev, @bryanhanson?


Tasks:

Activity

  1. GegznaV commented on Jun 19, 2022

    @GegznaV
    MemberAuthor

    Is an update related to a newer version of either R, or testthat, or other packages are needed?

  2. changed the title [-]Unit tests fail locally[/-] [+]Fix unit tests[/+] on Jun 19, 2022
  3. linked a pull request that will close this issueFix simplex volume #29on Jun 19, 2022
  4. removed a link to a pull requestFix simplex volume #29on Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions