generated from AllanOricil/js-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from mcarvin8/beta
Add Post Purge Flag, Rename Pre Purge Flag, and Use Fast XML Parser for Reassembly
- Loading branch information
Showing
12 changed files
with
341 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
push: | ||
branches-ignore: | ||
- main | ||
- release | ||
- beta | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Contributing | ||
|
||
Any contributions you would like to make to this repository are encouraged. | ||
|
||
## Requirements | ||
|
||
``` | ||
"node": ">=18", | ||
"pnpm": ">=8" | ||
``` | ||
|
||
## Setup | ||
|
||
1. Clone or fork the repository | ||
|
||
``` | ||
git clone git@github.com:mcarvin8/xml-disassembler.git | ||
``` | ||
|
||
2. Install dependencies | ||
|
||
``` | ||
pnpm | ||
``` | ||
|
||
## Branching | ||
|
||
Please create a new feature branch before making changes. | ||
|
||
When your changes are ready for review, please create a Pull Request into the `main` branch on this repository. | ||
|
||
All feature branches will run the `Build` CI/CD workflow which will build and test (see `Testing` below) the code upon push. | ||
|
||
## Testing | ||
|
||
The test suite will disassemble and reassemble XMLs with different attributes and will test different class flags. | ||
|
||
Use the following command from the root directory: | ||
|
||
``` | ||
pnpm test | ||
``` | ||
|
||
The test suite will copy all of the files found in `test/baselines` into a new `mock` directory before running the tests. After each disassemble test, the original file should be deleted to confirm it is reassembled correctly (whether it's via the `--postPurge` Boolean flag or manually deleting it to confirm coverage without the flag). | ||
|
||
The final test in the suite should always be the comparison test. This test compares the `baseline` files against the `mock` files to confirm there are no changes. This will not compare files if they are only found in the `mock` directory (mostly disassembled files except for the error condition tests). | ||
|
||
Ensure when you are adding new code & tests that all code reaches full code coverage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.