Creando test unitarios en mi portafolio [SPA-ENG]

avatar

Hace un tiempo había aprendido a realizar test sanitarios y funcionales en aplicaciones web hechas con react. Crear este tipo de test era muy sencillo porque los paquetes necesarios venían totalmente integrados junto con la librería.
Pero con las últimas versiones que han aparecido se modificaron demasiado las librerías y la manera de realizar test. Significa que ahora estas librerías no vienen totalmente integradas y uno debe instalarlas y configurarlas.

Some time ago, I learned how to run health and functional tests on web applications built with React. Creating these types of tests was very simple because the necessary packages came fully integrated with the library. But with the latest versions, the libraries and the way they were run have changed significantly. This means that these libraries are no longer fully integrated and you have to install and configure them.
Lo que antes era muy sencillo de crear ahora se tornó más complicado de manejar. La manera de escribir test es similar a versiones anteriores pero ocurre que no hay tanta Libertad para trabajar el código como antes. Esta nueva manera de crear un test tan sencillo como verificar si una etiqueta contiene un campo textual adentro requiere que se verifique si en la pantalla existe la etiqueta por el nombre completo no por su abreviatura y en algunos casos su nivel u atributo adicional.
What was once very simple to create has now become more complicated to manage. The way tests are written is similar to previous versions, but there isn't as much freedom to work with the code as before. This new way of creating a test as simple as checking whether a label contains a text field requires checking whether the label exists on the screen by its full name, not its abbreviation, and in some cases, its level or additional attribute.

Así de rebuscado como suena resultaron los nuevos test lo cual me demuestra que la verdad no vale la pena aprender test con este nuevo marco de trabajo porque si resulta muy complicado un test tan simple para controlar que una etiqueta tenga texto adentro no quiero saber lo complicado que puede llegar a ser verificar llamadas a servidores.

As far-fetched as the new tests sound, it shows me that it's really not worth learning how to test with this new framework. If such a simple test to check that a label has text inside is so complicated, I don't want to know how complicated it can be to verify calls to servers.


0
0
0.000
1 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. 
 

0
0
0.000