Coder Social home page Coder Social logo

esridevevents / testing-best-practices-for-arcgis-maps-sdk-projects-ds-2024 Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 228 KB

An example project that demonstrates the principles and practices described in the Automating CI/CD and Testing Best Practices for ArcGIS Maps SDK Projects talk at the 2024 Esri Dev Summit

Home Page: https://mediaspace.esri.com/media/t/1_274g6nh3

HTML 8.99% JavaScript 85.30% CSS 5.71%
arcgis-maps-sdk ds-2024 ds-usa technical-session testing

testing-best-practices-for-arcgis-maps-sdk-projects-ds-2024's Introduction

Testing Best Practices for ArcGIS Maps SDK Projects

An example project that demonstrates JavaScript testing principles and practices described in the Automating CI/CD and Testing Best Practices for ArcGIS Maps SDK Projects talk at the 2024 Esri DevSummit.

This project makes use of the following:

  • Create React App to setup a general framework for the application.
  • Jest for the unit testing framework.
  • Testing Library provides some helper functions for testing.
  • Selenium to script an end-to-end test.
  • ExpressJS for a simple backend to simulate server interaction.

Slides and Recording

A recording and slides of the presentation will be available at a later date. It should be uploaded to the Esri Mediaspace after the summit.

Setup

NodeJS version 20 is required to run this project. It might work on other versions.

After cloning the repository, install the dependencies by running the following in a command prompt in the base directory.

npm install

Running The Project

Start up the project by running the following in a command prompt:

npm run start

It will take several seconds to start up the web and backend server. The script should also open a browser window to the site, but you can view the site at http://localhost:3000.

Unit Testing

Run the project's unit testing by entering the following in a command prompt:

npm run test

This runs the unit tests in interactive watch mode. Enter a at the command prompt to re-run the tests. Enter q to exit the test runner.

End-To-End Testing

You will need to install the Chrome webdriver for Selenium. This allows Selenium to control a Google Chrome browser for testing.

After installing the webdriver, enter the following in a command prompt:

node .\src\selenium_test.js

Selenium will open an instance of Chrome for testing.

testing-best-practices-for-arcgis-maps-sdk-projects-ds-2024's People

Contributors

mdandini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.