Skip to content

Developing guide. how to run/develop the tests #4741

@mrgum

Description

@mrgum

Hello

I'd like to submit couple of PRs for ood-portal-generator. They change the template and therefore the output. A can see there are tests to check the output but I cannot figure out how to run them or how they work.

Could a testing section be added to the development.md please.

I guessed at running rake test:setup but got

cd /my/path/ondemand/ood-portal-generator
rake aborted!
NameError: uninitialized constant Bundler (NameError)

        Bundler.with_unbundled_env do
        ^^^^^^^
/root/ondemand/lib/tasks/test.rb:26:in 'block (4 levels) in <top (required)>'
/root/ondemand/lib/tasks/test.rb:23:in 'block (3 levels) in <top (required)>'
/root/ondemand/lib/tasks/test.rb:22:in 'Hash#each_pair'
/root/ondemand/lib/tasks/test.rb:22:in 'block (2 levels) in <top (required)>'
Tasks: TOP => test:setup
(See full trace by running task with --trace)

Thank you.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Reviewed, Scheduled

Status

In Progress ✈

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions