Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/3200'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed May 20, 2021
2 parents e2af994 + 4c78579 commit 4e44e0c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Expand Up @@ -33,4 +33,5 @@ jobs:
curl -siL http://127.0.0.1:3000/api/0.6/node/1 | grep 'Null Island'
- name: Test Complete Suite
run: |
docker-compose run --rm web bundle exec rails test:db
docker-compose run --rm web bundle exec rails db:test:prepare
docker-compose run --rm web bundle exec rails test:all
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install node modules
run: bundle exec rake yarn:install
- name: Run tests
run: bundle exec rake test:db
run: bundle exec rails test:all
- name: Report completion to Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -33,7 +33,7 @@ functionality.
You can run the existing test suite with:

```
bundle exec rake test
bundle exec rails test:all
```

You can view test coverage statistics by browsing the `coverage` directory.
Expand Down
2 changes: 1 addition & 1 deletion DOCKER.md
Expand Up @@ -56,7 +56,7 @@ Run the Rails database migrations:

Run the test suite by running:

docker-compose run --rm web bundle exec rake test:db
docker-compose run --rm web bundle exec rails test:all

### Loading an OSM extract

Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Expand Up @@ -219,7 +219,7 @@ bundle exec rake db:migrate
To ensure that everything is set up properly, you should now run:

```
bundle exec rake test:db
bundle exec rails test:all
```

This test will take a few minutes, reporting tests run, assertions, and any errors. If you receive no errors, then your installation is successful.
Expand Down
4 changes: 2 additions & 2 deletions VAGRANT.md
Expand Up @@ -32,15 +32,15 @@ Within this login shell, you can do development, run the server or the tests. Fo

```
cd /srv/openstreetmap-website/
rake test
bundle exec rails test:all
```

To access the web pages you run the following commands then access the site in your [local browser](http://localhost:3000):

```
vagrant ssh
cd /srv/openstreetmap-website/
rails server --binding=0.0.0.0
bundle exec rails server --binding=0.0.0.0
```

You edit the code on your computer using the code editor you are used to using, then through shared folders the code is updated on the VM instantly.
Expand Down
6 changes: 3 additions & 3 deletions config/locales/README
Expand Up @@ -5,9 +5,9 @@ Do NOT edit any translations in here, please use translatewiki.net instead.
The only file in this directory that should be edited by hand is en.yml, when
localisation strings change or new translations are introduced. All other
languages _need_ to be edited using translatewiki.net. Please make sure that you
run the tests using *rake test* to make sure that there are no errors, as there
is at least one test that makes sure that all translations are valid (we'll
makes sure that they won't cause the site to not work).
run the tests using *bundle exec rails test:all* to make sure that there are no
errors, as there is at least one test that makes sure that all translations are
valid (we'll makes sure that they won't cause the site to not work).

There is more information about translating the website on the wiki at
http://wiki.openstreetmap.org/wiki/Website_Internationalization.
10 changes: 0 additions & 10 deletions lib/tasks/testing.rake

This file was deleted.

0 comments on commit 4e44e0c

Please sign in to comment.