Skip to content

Commit

Permalink
Introduce a smoke tester
Browse files Browse the repository at this point in the history
The smoke tester runs PS battles and compares the damage rolls to the
calc's. If they don't match, it will print the output to `logs/`.
The smoke tester can then be re-ran with the log filename as a CLI
argument and it will report each failure in detail.

This is still a WIP as can be seen by the TODO comments but it works
decently enough now that I decided to commit it to the repo.
  • Loading branch information
thejetou committed Oct 13, 2023
1 parent 633bf2d commit 00985cb
Show file tree
Hide file tree
Showing 6 changed files with 3,373 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dist/
logs/
node_modules/
eslint-cache/
.tsbuildinfo
.eslintcache
.DS_Store
Thumbs.db
Expand Down
13 changes: 13 additions & 0 deletions smoketest/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"extends": "@pkmn",
"rules": {
"max-len": [
"error", {
"code": 100,
"ignorePattern": "^\\s*['\"`/]"
}
],
"@typescript-eslint/no-floating-promises": ["error", {"ignoreVoid": true}]
}
}
Loading

0 comments on commit 00985cb

Please sign in to comment.