Skip to content

Commit

Permalink
GSoC2024: added guide for adding a test case (#346)
Browse files Browse the repository at this point in the history
* feat: added guide for adding a test case

* Update framework-developer-guide.mdx

---------

Co-authored-by: Shalitha Suranga <[email protected]>
  • Loading branch information
Sadaf-A and shalithasuranga authored Sep 18, 2024
1 parent 7efb513 commit ff1ded5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/contributing/framework-developer-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ If you need to run tests for the `extensions` module, make sure to enter `npm in

The above command will run test only for the given module.

### Adding a test case

To add a test case simply add it to the `spec/<module>.spec.js` file.
For example, if you need to add a new test case to the `debug` module, add the test case to the `spec/debug.spec.js` file.

Next, run the test suite for that specific module, as shown in the following command snippet:

```bash
cd spec
npm i
npm run test debug
```

## Project directory structure

### Framework
Expand Down

0 comments on commit ff1ded5

Please sign in to comment.