Artsdatabanken / okologiskegrunnkart

Forvaltningsportal Økologisk Grunnkart
MIT License
8 stars 3 forks source link

Build Status Coverage Status Open Source Love MIT Licence PRs Welcome code style: prettier

Økologiske grunnkart

image

Useful links in the project

Wiki

This project has a wiki, access it here:

Deployment

Thanks


Thanks to BrowserStack for providing an open-source account for testing & development!

Setting up django and kartlag file

Read more in our wiki:

Start app in localhost

Follow these steps:

Run unit-tests locally

Unit tests in Økologiske Grunnkart use jest and react testing library.

Unit-tests are run with the following command: npm run test.

Run integration-tests locally with Cypress

Integration-tests can be run locally in each of the environments Økologiske Grunnkart uses: dev (localhost), test, and prod. Furthermore, integration-tests can be run locally in three different ways: interactive, in the background, and in parallel in the background.

Run one of the following commands for interactive tests:

Run one of the following commands for tests in the background:

Integration tests are divided in three groups which can be run separatedly. It requires opening three consoles and running one test group in each of them. This can be easily automated by doing this operation in a script or .bat file. Please note that, even though tests can be run in parallel on a single machine this way, it may require a significant amount of resources. More info at https://docs.cypress.io/.

Eslint skaper seg

Slett wms-assistent/node_modules/eslint-config-react-app