Thanks for considering contributing your time and talent to help Serenity/JS move forward!
You're awesome 😊
The Serenity/JS Handbook
The Serenity/JS Handbook is an evolving project and there are parts of the book that you might find incomplete, or simply not written yet.
You can contribute to the evolution of the Serenity/JS Handbook by:
- correcting any errors you find - via Edit on Github
- sharing your ideas for topics you'd like to see covered - via Github issues
- sponsoring the Serenity/JS project - via Github Sponsors
The Serenity/JS Framework
If you have a question about the framework or its features, please check out the support documentation.
If you believe you have found a bug in Serenity/JS please raise a ticket on Serenity/JS Github.
When reporting a bug, please kindly remember to:
- Give the ticket a succinct yet descriptive title (i.e. Feature X is broken vs, Feature X is not triggered upon event Y)
- Mention the environment where you spotted the bug. What was the browser and operating system? What versions of runtime dependencies did you use?
- Provide a detailed description of what happened and don’t leave any important facts out. That said, try not to include any extraneous details that could derail or distract the people trying to help reproduce the issue you found.
- Explain how the behaviour you observed is different from what you believe should have happened instead
- Provide supplementary information:
- If you can reproduce and isolate the issue, use one of the Serenity/JS template repositories to create a minimalistic example that demonstrates the problem and attach a link to it to your ticket. While this requires a bit more work on your side, it will help us sort out the problem much quicker.
- If you can reproduce the issue, but can't isolate it, add the
StreamReporterto your Serenity/JS stage crew, run the test again to trigger the bug, and attach the
StreamReporter's log to your ticket
- If you can't reproduce the issue, please attach any additional information that might help us figure out what happened - screenshots and test execution logs are particularly useful.
Serenity/JS is an open source project that's open to your contributions and pull requests.
Before putting your time and effort into a pull request, though, please gauge the potential interest in your idea either by raising a ticket on Serenity/JS Github or chatting with the development team on Gitter.
Working with the Serenity/JS code base
If you have decided to raise a pull request, you'll need to:
- Fork the Serenity/JS mono-repo to your Github account
- Clone your fork to your machine
- Make sure you have the runtime dependencies installed
- Install the Node.js dependencies by running
npm ciin the project root. Serenity/JS uses Lerna.js to manage the
@serenity-js/*modules you'll find in the mono-repo, so it will take care of propagating the
npm ciand other commands to the modules.
- Make sure you can build the Serenity/JS project on your machine and all the unit- and integration tests are passing before introducing any changes
- Introduce the changes you wish to propose and update or introduce any unit- and integration tests that might be affected.
- Run the full local build before committing
- Commit your changes using
npm run commitand describe them using the Commitizen wizard. Serenity/JS uses an automated release process so it's important that your commit messages follow the required format, which Commitizen can generate for you.
In the project root directory, you'll find the following sub-directories
packages- this is where all the Serenity/JS modules and their associated unit tests live
examples- when the changes you want to introduce pass their unit tests and integration tests, you can use the mini-projects located here for exploratory testing and experimentation. Those example projects simulate the framework's target execution environment, so you can use them to look at your changes from the perspective of people who'll be using them soon!
Serenity/JS Makefile drives the entire build process.
Here's a list of commands you'll need to build and test Serenity/JS locally:
make clean- removes any build and test artifacts.
make clean test- removes build artifacts and executes the unit tests located under
make clean verify report site- same as verify, but additionally generates test reports and produces the serenity-js.org website. This is the full local build you should run at least once before committing your changes and submitting the pull request.
If you encounter any issues, let us know on Gitter.