Skip to content

Commit 505a7ff

Browse files
author
Seeker04
committed
Mocking and branch deletion mentioned in Development Guide
1 parent 9b2719b commit 505a7ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/development_guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ They are written using SWI-Prolog's [PlUnit](https://www.swi-prolog.org/pldoc/do
129129
swipl -g run_tests -t halt tests/unit_tests/utils.plt
130130
```
131131

132+
**Note:** predicates called from other modules must be mocked: either define them at the top of the test file (all tests will access it), or dynamically assertz and retract in the `setup` and `cleanup` clauses of tests as needed.
133+
132134
**Important:** Every new revision of plwm must give an "All checks PASSED" result from check_all.sh to be accepted. To be precise, it must succeed in our `ubuntu:latest` [Docker image](../Dockerfile).
133135

134136
You can build and run it with these commands:
@@ -165,6 +167,8 @@ We use [rebasing](https://docs.github.com/en/get-started/using-git/about-git-reb
165167

166168
If it solves some issue(s), e.g. no. 1 and 2, the description must have `Closes #1. Closes #2.`
167169

170+
We don't immediately delete branches when merging PRs. Old branches are removed when we create a new release.
171+
168172
New contributors will be asked if they wish to be included in [AUTHORS](../AUTHORS).
169173

170174
# Versioning and releases

0 commit comments

Comments
 (0)