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.139 tracks/prolog/docs/TESTS.md
trackler-2.2.1.138 tracks/prolog/docs/TESTS.md
trackler-2.2.1.137 tracks/prolog/docs/TESTS.md
trackler-2.2.1.136 tracks/prolog/docs/TESTS.md
trackler-2.2.1.135 tracks/prolog/docs/TESTS.md
trackler-2.2.1.134 tracks/prolog/docs/TESTS.md
trackler-2.2.1.133 tracks/prolog/docs/TESTS.md
trackler-2.2.1.132 tracks/prolog/docs/TESTS.md
trackler-2.2.1.131 tracks/prolog/docs/TESTS.md
trackler-2.2.1.130 tracks/prolog/docs/TESTS.md
trackler-2.2.1.129 tracks/prolog/docs/TESTS.md
trackler-2.2.1.128 tracks/prolog/docs/TESTS.md
trackler-2.2.1.127 tracks/prolog/docs/TESTS.md
trackler-2.2.1.126 tracks/prolog/docs/TESTS.md
trackler-2.2.1.125 tracks/prolog/docs/TESTS.md
trackler-2.2.1.124 tracks/prolog/docs/TESTS.md
trackler-2.2.1.123 tracks/prolog/docs/TESTS.md
trackler-2.2.1.122 tracks/prolog/docs/TESTS.md
trackler-2.2.1.121 tracks/prolog/docs/TESTS.md
trackler-2.2.1.120 tracks/prolog/docs/TESTS.md