The Digital Archaeological Record (tDAR) is an international digital repository for archaeological investigations. tDAR’s development and maintenance are governed by Digital Antiquity, an organization dedicated to ensuring the long-term preservation of irreplaceable archaeological data and to broadening the access to these data.
For more information, please visit http://www.tdar.org
- Postgres 9.5 (with PostGIS extensions for production)
- Java 8
- Maven 3.5
- Mercurial
- git (for npm packages)
- npm 5.6+
- Chrome (for Selenium)
- chromedriver (for selenium; in unix assumed to be in /usr/local/bin/chromedriver; if mac /Applications/chromedriver )
- check out the source from http://bitbucket.org/tdar/tdar.src
- do a first clean install mvn clean install -DskipTests
- cd "web" to move into the "web" package
- run mvn clean compile -Psetup-new-instance to copy template configuration files into the src/main/resources/ directory
- install postgres with postgis extensions
- create tdar user with login permissions from localhost, tests assume password of 'tdar'
- create the following databases with tdar as the owner:
- test_tdarmetadata
- test_tdardata
- tdarmetadata
- tdardata
- tdargis (optional, using the posgis template)
- run mvn clean install -DskipTests -Pliquibase-setup-dev-instance
- try running tdar in the web package: mvn clean compile jetty:run
To run the entire tDAR test suite, which includes all unit tests, karma tests, and E2E/Selenium tests.
mvn clean verify -Ptest
cd ./web
karma start
Execute a single intetration test by using the maven -Dit.test
flag. The following example runs the
DatasetSeleniumWebITCase suite (and skips all front-end/karma tests):
cd ./web
mvn verify -Ptest -Dit.test=DatasetSeleniumWebITCase -DskipKarma