codeforequity-at / codeforequity-at/botium-bindings

Unable to run selective convodirs tests

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
106
Forks
36
PR merge metrics
No merged PRs in 30d

Description

We are using Jasmine to run our botium tests and I was wondering if it's possible to run tests in one of the two convo directories by providing a parameter on runtime?

For example in the screenshot below you can see we have two convo directories defined on our package.json and by default all the test scripts (convo.txt) in these two folders run when I use
`npm run test`

I am looking at running tests under one of these `convodirs` by providing the convo directory path/name at runtime or maybe creating a script pointing to one of these so that I could run something like this

`npm run auth` - to run scripts in auth directory
`npm run unaut` - to run scripts un unauth directory

image

package.json - scripts
image

botium.spec.ts
image

Contributor guide

Open the contributing guide

Research direction

Start with the convodirs configuration in package.json and the test setup in botium.spec.ts; compare how npm run test currently discovers both directories. Define how a runtime directory path or dedicated script should select one directory, while retaining the existing all-directory behavior, and verify the relevant npm commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.