-
Notifications
You must be signed in to change notification settings - Fork 35
IDE Setup
This project is developed in Visual Studio Code. Other IDEs (Integrated Development Environments) should work also.
The following VSCode plugins are recommended with the Nala Project and by default will ask to install them if needed in VSCode:
Playwright integrates easily with Visual Studio via the extension. Follow the instructions here to set it up. Outside of the extension/plugin integrations, all other setup steps follow the same standards for JavaScript and Node.js development within the out-of-the-box VSCode IDE provisions.
-
Create a new feature branch on the nala repository https://github.com/adobecom/nala after cloning the project from the “main” branch.
-
Go to the original “main” branch of the nala repository and copy the link in the screenshot below.
- Go to the terminal and run the following command. Please make sure to use the
$ cd command
to go to the folder where you want to clone the repo.
$ git clone <copied link from above>
- Follow the README.md instructions provided from the code repository root directory.
Whenever you want to merge some code from your feature branch to the main repo, please raise a PR and get it reviewed before merging. All PRs require at least two reviews/approvals. Here are the steps to raise a PR:
- Check in your code to your feature branch.
To add/update/delete a file in git, run the following command
$ git add <your file name>
Note: You can get the exact file name to be entered here by executing the $ git status
command and it will give you the names of all the files changed.
- After this, commit your code with a comment
$ git commit -m "<comment>"
- Then run the push command
$ git push
- Now go to your feature branch and click on the "Pull Request" tab and click on the "New Pull Request" button on the right. You will see the comparison between the files you have changed and if there is any conflict in merging it with the main branch. Please make sure before raising a PR that there are no conflicts. Once you verify this, click on the "Create Pull Request" button.
Your PR is raised now, and you can add reviewers to it.
-
Please add a clear description of the PR, with a brief summary of what the test does, for example, its test cases.
-
Make different branches from the “main” branch for separate Jira tickets. Each PR should be associated with a Jira ticket, and the ticket link should be added to the PR summary or description.
-
Add the "@run-nala" label to the PR and add a new label that is associated with the feature spec file name tag for your test, i.e., "@marquee". This will allow the Nala automation to run against your PR for reviewers to see your test pass/fail within the CI workflow. Adding just the "@run-nala" label will run all test suites within the Nala repository against your PR, if you want to just run your test against your PR you must add both the "@run-nala" label and your newly added test tag label as described above. See the below screenshot for reference: