Skip to content

Commit

Permalink
Testing and debugging instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 17, 2024
1 parent e58f226 commit eee3d4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,14 @@ https://common-workflow-lab.github.io/cwl-ts-auto/

## Limitations
cwl-ts-auto only supports the CWL v1.2 syntax. Other documents have to be upgraded using the [cwl-upgrader](https://pypi.org/project/cwl-upgrader/)

## Running and debugging tests
To run tests, install npm and run `npm test`, which launches mocha as defined
in `package.json`. Additional options to mocha can be passed afer `--`. To run
a single test run `run npm test -- --grep $my_test_id`. It is occasionally
helpful to pass `--allow-uncaught` to mocha to get a better handle on failing
test assertions. To debug a test using the chrome inspector insert a
breakpoint anywhere in code called by the test. Breakpoints are using the
`debugger;` instruction. Open chrome and navigate to `chrome://inspect`, then
run `npm test -- --grep valid_cond_wf_003_1_nojs --inspect --debug-brk`, switch
back to chrome and click inspect.

0 comments on commit eee3d4f

Please sign in to comment.