Sha256: 5aa7c272d01bd789ffbaae04cc7ec459e1f837dcef93a4a68873d9c9c940c8b8

Contents?: true

Size: 877 Bytes

Versions: 68

Compression:

Stored size: 877 Bytes

Contents

## Running Tests

SWI Prolog can either be run interactively or by executing it directly at the
command line.

To run prolog interactively first run:

`$ swipl`

After the prolog console starts, load your implementation and run the tests
with:

```
?- ["hello_world.pl"].
?- ["hello_world_tests.plt"].
?- run_tests.
```

To run your implementation directly run:

`swipl -f hello_world.pl -s hello_world_tests.plt -g run_tests,halt -t
'halt(1)'`

In both cases, replace `hello_world.pl` and `hello_world_tests.plt` with the
name of the exercise you are implementing.

When you first begin an exercise, only the first test will run. The rest have
been skipped by adding `condition(pending)` to the `test` goal. Once the first
test passes, un-skip the next test by changing `pending` in `condition(pending)`
to `true`. Repeat for each test until they are all running and passing.

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/prolog/docs/TESTS.md
trackler-2.2.1.179 tracks/prolog/docs/TESTS.md
trackler-2.2.1.178 tracks/prolog/docs/TESTS.md
trackler-2.2.1.177 tracks/prolog/docs/TESTS.md
trackler-2.2.1.176 tracks/prolog/docs/TESTS.md
trackler-2.2.1.175 tracks/prolog/docs/TESTS.md
trackler-2.2.1.174 tracks/prolog/docs/TESTS.md
trackler-2.2.1.173 tracks/prolog/docs/TESTS.md
trackler-2.2.1.172 tracks/prolog/docs/TESTS.md
trackler-2.2.1.171 tracks/prolog/docs/TESTS.md
trackler-2.2.1.170 tracks/prolog/docs/TESTS.md
trackler-2.2.1.169 tracks/prolog/docs/TESTS.md
trackler-2.2.1.167 tracks/prolog/docs/TESTS.md
trackler-2.2.1.166 tracks/prolog/docs/TESTS.md
trackler-2.2.1.165 tracks/prolog/docs/TESTS.md
trackler-2.2.1.164 tracks/prolog/docs/TESTS.md
trackler-2.2.1.163 tracks/prolog/docs/TESTS.md
trackler-2.2.1.162 tracks/prolog/docs/TESTS.md
trackler-2.2.1.161 tracks/prolog/docs/TESTS.md
trackler-2.2.1.160 tracks/prolog/docs/TESTS.md