Skip to content

Commit

Permalink
Add instructions and example .env file for running tests locally
Browse files Browse the repository at this point in the history
  • Loading branch information
spilth committed Aug 5, 2024
1 parent 5f5441c commit e197bcc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SOLR_INSTANCE_DIR=tmp/sdr-core-test
SOLR_INSTANCE_NAME=sdr-core-test
SOLR_URL=http://127.0.0.1:8983/solr/sdr-core-test
SOLR_PORT=8983
SOLR_VERSION=9.2.1
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ If bundler is not being used to manage dependencies, install the gem by executin

`sdr-cli transform` transforms a collection of GeoBlacklight 1.0 documents to OGM Aardvark

## Development

### Running Tests

After checking out the project, copy `.env.example` to `.env`. These variables will inform the `solr_wrapper` gem how to start up a Solr instance when running the test suite.

Then run the test suite with the following command:

```bash
$ bundle exec rake
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/NYULibraries/sdr-cli.
Expand Down

0 comments on commit e197bcc

Please sign in to comment.