Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
Integration testing of React front end with Django REST backend

Does anybody know how to do integration testing of a (React) frontend with Django REST backend. I was able to write functional tests for the frontend with Nightwatch.js and with a fake server API. I am also able to separately test Django REST API - Django offers a LiveServerTestCase that can start a test server for you with a test database and destroy it at the end. I'm wondering if it's possible to somehow use/setup Django's test server that can be called by the front end (i.e. Nightwatch tests). I'm open to other ideas on how I can approach this problem.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It is always a bit tricky to integration test heavy client side javascript applications. My tool of choice for this scenario is to use Capybara - a nice Ruby DSL for interacting with web pages - together with a javascript enabled driver. I have used both webkitdriver and poltergeist succesfully. They are both headless so you can run tests in the background without disturbing browsers popping up. (The case with selenium....) There are issues with both in certain cases that I don't remember right now.

Since you are using Django you may want to do testing in Python. I would suggest looking for support for one of the two drivers mentioned above. Also the node.js community may have something useful for this.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda